iPhone toggle button implementation

前端 未结 7 1940
孤独总比滥情好
孤独总比滥情好 2021-02-04 09:05

I would like to create a toggle button in my iPhone application. However, I don\'t know exactly what would be the best approach for this.

I am considering two options.

7条回答
  •  囚心锁ツ
    2021-02-04 09:13

    I need to do this too. Wouldn't setting the enabled state to NO prevent the button being toggled back though?

    UPDATE

    People are suggesting UISwitch but can this be skinned with all the relevant up,over,disabled,selectedUp,SelectedOver,selectedDisabled states?

提交回复
热议问题