UIPickerView selectRow doesn't works

老子叫甜甜 提交于 2019-11-29 10:20:42

While inside the viewDidLoad method, your picker is empty. Since there is no 6th element to pick, it doesn't pick it.

You can do this if you delay execution of the select call until after the data is finished loading. Likely one cycle will be enough.

First though, try moving your select to viewDidAppear.

Good luck!

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