6
3
|
I Have an a touchesEnded event that checks for when a UITextField is pressed. What I would like it to do is is hide/show a UIPickerView. How can this be done?
} I already have an allocated UIPickerView when touches occur
} |
||
5
|
UIPickerView inherits from UIView, so you should be able to just toggle its 'hidden' property:
|
||
16
|
Toggling the "hidden" property will do the trick, but will also give a very abrupt reveal. One way to avoid this is to get the picker to slide up from the bottom of the screen by embedding it inside a UIActionSheet. Here's an example:
|
4 '12 at 22:40