Search code examples
iphonexcodeuipicker

Popup UIPicker instead of keyboard


I want a UIPicker to popup instead of the keyboard when I click on a text field. Is this possible, I've been googling for awhile but can't find anything.

Does anyone have any sample code ?

Regards, Stephen


Solution

  • Use [self presentModalViewController:picker] to present a modal view controller when user click on the text field. I hoped that you know how to handle text field event