如何在我的 settings.bundle 中使用 UIPickerView 就像“nike”一样? iPod'应用程序有吗?

发布于 2024-11-30 11:50:51 字数 138 浏览 3 评论 0原文

我从文档中看不出这是如何实现的,但耐克正在他们的应用程序中做到这一点,所以一定有办法。

Nike + iPod 自定义 UIPickerView

I can't see how this is possible from the documentation but here nike is doing it in their app so there must be a way.

Nike + iPod custom UIPickerView

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦里梦着梦中梦 2024-12-07 11:50:51

不幸的是这是不可能的。苹果为耐克开发了它,因此他们使用了自己的技巧来做到这一点。这实际上可能是可能的,但如果可能的话,它肯定是没有记录的。对于 App Store 应用程序来说这是不可能的。如果您找到了一种方法,即使没有记录,也请告诉我们。

It's impossible unfortunately. Apple developed it for Nike, so they used tricks of their own to do it. It might actually be possible, but it's certainly undocumented if possible. Impossible for an App Store app. Let us know if you figure out a way to do it even if it's undocumented.

埋情葬爱 2024-12-07 11:50:51

如果您使用库 InAppSettingsKit,您可以有一个使用自定义子视图(自定义 UIViewController)的设置向用户显示选择。因此,您所要做的就是创建一个自定义视图控制器,它看起来就像您的图片中的那样(它基本上只是一个 UITableView 和一个 UIPickerView)。

在 InAppSettingsKit 附带的示例应用程序中,有一个有关如何使用自定义子视图的示例。

If you use the library InAppSettingsKit, you can have a setting that uses a custom subview (a custom UIViewController) to display the choice to the user. So all you have to do is to create a custom view controller that looks just the one in your picture (it's basically just a UITableView and a UIPickerView).

In the example app that comes along with InAppSettingsKit, there is an example on how to use a custom subview.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文