I am very new to iPhone/iPad development.
can you please help me create this programmatically. I want to expand/collapse a UIView programmatically.
This expandable/collapsable view will have some text field and lables which should appear and disappear with that view
Suppose you have a UIView instance in the UIViewController class like this:
based on the requirement you set the view visibility as I did here .. I am not displaying the view when the controller is loading it’s view ..
Maintain a flag to check the visibility of the view instance .. lets say
isViewVisibleis my flag to check the visibility of the view .. I set it to NO in the begning ..and I wrote an action method (viewClicked) here to expand and to collapse the view object , give this action method to a button instance and it will work.
and add the textfields and labels objects to the view object as subviews and set the animation to those objects as well .. it will work.