Is there an easy way to create a drop down menu for a UITextField, so that the user can type a custom entry or select one from a list?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For drop down menu you can implement UITableView. You can populate this UItableview with your list.
Just declare it in ViewDidLoad method of your ViewController and then you can show or hid accordingly later.
Add this to main view when user clickes on UITextField.
If you want user to select from given list only better option is UIButton instead of UITextField.
EDIT: I didn’t notice it is the same as above answer.