obj-c : iphone programming : change selection on pickerview programaticaly

我的未来我决定 提交于 2019-12-02 19:34:27

问题


i got a pickerview and i want to add a code that will automaticaly show at the user the row i want.

thanks


回答1:


Use the -selectRow:… method.

[thePickerView selectRow:123 inComponent:0 animated:YES];


来源:https://stackoverflow.com/questions/2883683/obj-c-iphone-programming-change-selection-on-pickerview-programaticaly

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