如何设置 UIPickerView 的当前选择

发布于 2024-09-07 17:56:21 字数 141 浏览 0 评论 0原文

我在一个 xib 文件中有一个选择器视图,在另一个文件中有一个地图视图。用户使用选择器视图选择地图视图,然后单击按钮加载地图视图。但是,当我返回到选取器视图 xib 文件时,选取器视图将返回到默认选择。如何让picker view自动选择用户之前选择的mapView?

I have a picker View in one xib file, and a map View in another. The user selects a map view with the picker View, and the clicks a button, which loads the mapView. However, when I return to the picker View xib file, the picker View goes back to the default selection. How do I make the picker view automatically select the mapView that the user selected before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文