什么是iOS7等于HTML无线电按钮



我希望用户选择他的性别。是否有相当于HTML无线电按钮的iOS7?我发现iOS Switch尴尬地选择了性别选择和拾取器视图过高...

iOS分段按钮可以帮助您:https://developer.apple.com/library/ios/documentation/uikit/reference/uiseegendedcontrol_class/referend/reference/uiseingmentedcontrol.html

或自定义一个:https://www.cocoacontrols.com/controls/segented-buttons

no default类可以创建诸如HTML无线电按钮之类的功能。但是您可以通过显示图像来自定义按钮,取决于单击(开/关)。

最新更新