Radio button in iPhone app

后端 未结 11 1735
臣服心动
臣服心动 2020-12-06 06:11

I have to add radio buttons in my iPhone application. For that I have got radio button image which is of round in shape. Can I add that image as a subview? and Can I add tou

11条回答
  •  感情败类
    2020-12-06 06:14

    iPhone apps do not have radio buttons. The "iPhone-like" way to do this is either by using a picker view or by having several rows in a grouped table view with a check accessory on the chosen row.

    If for some reason you really, really feel the need to have radio buttons, use a UIButton with a button type of custom. Set the empty circle as the image for the "normal" control state and the filled circle as the image for the "selected" state.

提交回复
热议问题