Search code examples
iphoneiosxcodebuttonnsbutton

Can't find NSButton for iOS


i am using xcode4 and storyboard to create an application form. I would like to add check button and found using NSButton is the best way, but I could not find NSButton in the object library. Would you please tell me how to find it?


Solution

  • NSButton is cocoa class and available on MacOS, not iOS. iOS does not have standard check box so you'll have to use UIButton with custom images for selected/deselected state instead of that.

    Or (may be better) you can use standard UISwitch control which serves similar purpose