I have UiView,In my Uiview I have one Button And one textField.
When I click the button i need to show the popUp for date values.
when i click the textfield,other popUp with Names.If user select any name from there,that name will show in textfield.If User click on Button,Dates will be arranged by Ascending or Descending order.
Probelm is,My Uiview contain one Main table also.
Now how to differentiate that main table and popUp views.
Thanks.
Create your other popups as separate classes, and add them to your view when needed.
Example:
Create a class called “Names” which inherits from UIView or UIViewController
Create a class called “Dates” which inherits from UIView or UIViewController
To present any of those classes as a popup, you have 2 options:
[self addsubview:nview] & [UIView animationwithduration]to make the popup animation.[self presentViewController:nview].