Can someone please provide some example code on how I could create the following features on an iOS app:
Option 1:
I want to create a text field through Interface Builder, and when someone clicks on that text field, instead of bringing up the default keyboard, I want it to bring up a Picker View which lists several choices of my liking. Once the user is done picking a certain value, they can click on a “done” button by the picker view and the picker view will go away and the Text Field will be populated with what they chose on the Picker View.
Option 2
If the previous method will require too much code to accomplish, could someone provide example code on how to create a basic Drop Down menu similar to how a standard drop down menu on a website?
Thanks
Create a new file. I called mine AEMPicker. The .h:
the .m:
Now, in the class you want to present your pickerView, after
#import AEMPicker;add to your .h:add to your .m:
That should give you a pretty basic picker popover to play with.