Best radio-button implementation for IOS

后端 未结 8 588
心在旅途
心在旅途 2020-11-29 20:50

I would like to ask if there are examples out there on how to implement radio-button options on an iPhone app.

I find the Picker View quite big for a simple selectio

8条回答
  •  感动是毒
    2020-11-29 21:38

    Just want to sum up, there might be 4 ways.

    • If you don't have much space, add a click event for text or button, then show UIPickerView:

    UIPickerView

    or open a new table view control with a check mark:

    UITableView

    • If there is more space, add a table view directly to your main view:

    enter image description here

    • The final solution is using UISegmentedControl:

    enter image description here

    Hope this helps.

提交回复
热议问题