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正在他们的应用程序中进行,所以必须有一种方法。
2 个解决方案
#1
0
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.
不幸的是,这是不可能的。 Apple为Nike开发了它,因此他们使用自己的技巧来做到这一点。它实际上可能是可能的,但如果可能的话,它肯定没有记录。 App Store应用程序无法实现。如果您找到了一种方法,即使它没有记录,也请告诉我们。
#2
0
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).
如果使用库InAppSettingsKit,则可以使用自定义子视图(自定义UIViewController)的设置向用户显示选项。因此,您所要做的就是创建一个自定义视图控制器,它只是图片中的一个(它基本上只是一个UITableView和一个UIPickerView)。
In the example app that comes along with InAppSettingsKit, there is an example on how to use a custom subview.
在InAppSettingsKit附带的示例应用程序中,有一个关于如何使用自定义子视图的示例。
#1
0
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.
不幸的是,这是不可能的。 Apple为Nike开发了它,因此他们使用自己的技巧来做到这一点。它实际上可能是可能的,但如果可能的话,它肯定没有记录。 App Store应用程序无法实现。如果您找到了一种方法,即使它没有记录,也请告诉我们。
#2
0
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).
如果使用库InAppSettingsKit,则可以使用自定义子视图(自定义UIViewController)的设置向用户显示选项。因此,您所要做的就是创建一个自定义视图控制器,它只是图片中的一个(它基本上只是一个UITableView和一个UIPickerView)。
In the example app that comes along with InAppSettingsKit, there is an example on how to use a custom subview.
在InAppSettingsKit附带的示例应用程序中,有一个关于如何使用自定义子视图的示例。