iphone populating dynamic controls
<p>I am working on iphone aaplication..
As I have seen in iphone app, the controls used in app are statically predefined in interface builder and uiviewcontroller...
But I have to deal with situations where I do not know what type of control to create..The controls are known to me at runtime of application....
How do i populate such controls e.g. datepicker, uipicker,textfield, checkboxes, radios etc dynamically</p>

<p>After populating i also need to perform validation on these controls..</p>

<p>BTW,In android, this was very easy using linearlayout and other ui controls..
How can I achieve same in iphone?</p>

<p>Thanks</p>
