Asked
Active
Viewed 124 times
-1

Manchu
- 43
- 10
-
yes, you can create a view programmatically. – shuvo Oct 22 '16 at 06:54
-
1So what's the problem? You definitely can do `[[UIView alloc] initWIthFrame:]` whenever you want and add it to the view hierarchy via `addSubview:` method – alexburtnik Oct 22 '16 at 06:54
-
Please tell me any tutorials or demo app? – Manchu Oct 22 '16 at 06:55
-
update your question with one UI screen that shows your New UIview that you want and also include that some label and check box . – Himanshu Moradiya Oct 22 '16 at 06:57
-
Can I make Custom SDK of this? – Manchu Oct 22 '16 at 07:00
1 Answers
1
There are many ways to do this. Here are two:
Use the existing markup language. Storyboards and Xibs are just XML. You can generate that XML on the server, download it at run time, and then use
NSBundle loadNibNamed:owner:options:
.You can invent some new markup. That XML format isn't documented, to my knowledge. It's also really hard to read. You might decide some simple json describing the view you want is all you need. So just download json responses and instantiate the views and map the properties. You can get fancy and use things like
NSSelectorFromString
to invoke the property setters, etc.