Reputation: 342
When the user taps on UITextField I want it to display a drop down menu with 5 or more options. When the user selects one of the options, it has to be set as the text of the text field. Any ideas on how to create it?
Upvotes: 0
Views: 1376
Reputation: 7733
Drop down is not available in the iphone .Though there is an option of adding picker view inside the action sheet if you are making an application on iphone. and for ipad Application put a tableview inside a popovercontroller controller.
Upvotes: 0
Reputation: 2722
Create a UITableView I guess? With the 5 options inside. Then implement the didSelectRowAtIndexPath method of the tableview to set the text inside the textfield.
Upvotes: 0