Ipad Checkboxes
How do I use checkboxes in iPad application development?
I want to use this for users to answer questions like:
1.Is the Up Photocell operational? Yes No
T开发者_C百科hen output the results to another page.
I've tried some google searches, with nothing.
Anyone?
The UIKit user interface in iOS doesn't use checkboxes, it uses the UISwitch control.
There is no checkbox control.
There is no standard checkbox provided by Apple but there are some opensource solutions. Checkout: http://cocoacontrols.com/platforms/ios/controls/radiobutton
There are other solutions out there too but that is one.
You may want to make your own if UISwitch isn't what you want. Just subclass a UIImageView and put a UITapGestureRecognizer on it. Every time it is tapped it switches the image and flips a BOOL variable.
精彩评论