if you want popUp pickerview to click the button ... you can use uitextfield instead of uibutton .... in ViewDidload just set the input value of uitextfield as vieweriew and in the Didbeginediting text box set the color of the text in the text as Clearcolor.
Try this, hope this helps.
source share