What is the best way to make a UIButton checkbox?

后端 未结 9 1447
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 04:03

I am trying to make a standard check box for my iPhone app from a UIButton with a title and image. The button image changes between an \"unchecked\" image and

相关标签:
9条回答
  • 2020-12-14 04:51

    I have used M13Checkbox in one of my projects. Works ok.

    https://github.com/Marxon13/M13Checkbox

    0 讨论(0)
  • 2020-12-14 04:52

    Did you try overriding the initWithCoder method, just in case it is loaded from a nib somehow?

    0 讨论(0)
  • 2020-12-14 04:59

    Why not use a switch - UISwitch? This is used to display an element showing the boolean state of a value.

    0 讨论(0)
提交回复
热议问题