开发者

How can I use a UIPickerView in my settings.bundle like how the 'nike+ ipod' app does it?

开发者 https://www.devze.com 2023-03-29 04:03 出处:网络
I can\'t see how thi开发者_开发知识库s is possible from the documentation but here nike is doing it in their app so there must be a way.

I can't see how thi开发者_开发知识库s is possible from the documentation but here nike is doing it in their app so there must be a way.

How can I use a UIPickerView in my settings.bundle like how the 'nike+ ipod' app does it?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号