xcode iOS 中的 Spinner,就像在 Android 中一样
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27685987/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Spinner in iOS, like in Android
提问by Sagar
I am very first time developing the Spinner in iOS.
我是第一次在 iOS 中开发 Spinner。
I searched a lot for default Spinner view in iOS, but failed. What I get is, two ways to design spinner like view in iOS.
我在 iOS 中搜索了很多默认 Spinner 视图,但失败了。我得到的是,在 iOS 中设计类似视图的微调器的两种方法。
- UIPickerview
- Custom TableView which will be displayed on Click of DownArrow Button
- 用户界面选择器视图
- 单击 DownArrow 按钮时将显示的自定义 TableView
I found the tutorial for UIPickerview
.
But There are some OS orientation for this,
Means I want the UIPickerview
in different Look & feel with selection style, also Scrolling of picker is not as I want.
So I was thinking to go for second options.
我找到了教程UIPickerview
。但是这有一些操作系统方向,意味着我想要UIPickerview
不同的外观和感觉和选择风格,而且选择器的滚动也不是我想要的。所以我在考虑去第二个选择。
But Is there any other superior way to achieve this task, As I think the second option is GOOD, but NOT BEST.
但是有没有其他更好的方法来完成这项任务,因为我认为第二个选项是好的,但不是最好的。
What I want is like the image below, its from Android, I want to go for the same in iOS.
我想要的是下图,它来自 Android,我想在 iOS 中也一样。
Thanks for help..
感谢帮助..
采纳答案by Fahim Parkar
I think what you are looking is here
我想你要找的就在这里
But I use RMPickerViewControllerwhich is more powerfull.
但我使用更强大的RMPickerViewController。