Hi,
I faced some problems when developing my Iphone project. Really hope anyone can give some ideas. Below is the scenario:
1.) My project have a login page with a text field named as name and a button beside this text field.
2.) Once click that button, a pop up list (in this case I display the pop up list as a table list) which consists a list of names will be displayed.
- I am using - (void)insertSubview: (UIView *)view aboveSubview: (UIView *)siblingSubview method to display that pop up list.
3.) User can choose one of the names then click "Done" button at the bottom of pop up list.
4.) Once click that "Done" button, the pop up list will be removed and show up that login page. The name selected by user just now must be passed and displayed in the text field in login page.
- I using - (void)removeFromSuperview method the remove that pop up
list.
- I get the value from pop up list and set to the text field.
But now what I get is I can't pass that name value from pop up list to text field. It seems the text field and the login page does not "refresh" or "redraw" as I am using removeFromSuperview method.
Am I using the wrong way to display all the views? Anyone has any idea to pass the value from pop up list to the login page as I am doing now?
I had attached a sample view for this scenario.
Really Thanks for any help.
I faced some problems when developing my Iphone project. Really hope anyone can give some ideas. Below is the scenario:
1.) My project have a login page with a text field named as name and a button beside this text field.
2.) Once click that button, a pop up list (in this case I display the pop up list as a table list) which consists a list of names will be displayed.
- I am using - (void)insertSubview: (UIView *)view aboveSubview: (UIView *)siblingSubview method to display that pop up list.
3.) User can choose one of the names then click "Done" button at the bottom of pop up list.
4.) Once click that "Done" button, the pop up list will be removed and show up that login page. The name selected by user just now must be passed and displayed in the text field in login page.
- I using - (void)removeFromSuperview method the remove that pop up
list.
- I get the value from pop up list and set to the text field.
But now what I get is I can't pass that name value from pop up list to text field. It seems the text field and the login page does not "refresh" or "redraw" as I am using removeFromSuperview method.
Am I using the wrong way to display all the views? Anyone has any idea to pass the value from pop up list to the login page as I am doing now?
I had attached a sample view for this scenario.
Really Thanks for any help.