Picker view as subview

自古美人都是妖i 提交于 2019-12-12 06:56:45

问题


i m currently working on an application and i m stuck up with the pickerview. i have a button n my view n when i click on that button i want a pickerview to appear as a sub view but i m unable to do this. i also want to select a value from the picker view and store it somewhere to use it for further actions. anyone please help..........


回答1:


Create UipickerView programatically and add it as a subview with required height using

cgrectmake and delegate to self than you can select values from picker .

Afte that hide or remove subview when required.Define it as IBOUTLET for any further

referance



来源:https://stackoverflow.com/questions/1215962/picker-view-as-subview

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!