如何让IOS选择器视图默认选择特定值
I'm getting an issue on a picker view. When the picker is opened I would like the focus to be on the active value that is 70 instead of 42. I have used generic attribute like selected
for this purpose but no luck.
Any idea how to solve this please?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过以下方法设置默认选择值。 (在下面的代码中,1是您要选择的行的索引)
you can set the default selected value by the following method. (in below code, 1 is the index of the row you want to select)