Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pop up UIPickerView on button click (Swift)

How do I pop up a UIPickerView (which is not on the screen) with a button click? I can't find any sources online which do this.

like image 260
Josh O'Connor Avatar asked Jul 03 '15 00:07

Josh O'Connor


1 Answers

if you want to popUp pickerview on button click ... you can use uitextfield instead of uibutton .... in ViewDidload just set uitextfield inputview as pickerview and in In textfield Didbeginediting set textfield tint color as Clearcolor.

Try this, Hope it Helps.

like image 120
Dhaval Mistry Avatar answered Sep 21 '22 05:09

Dhaval Mistry