PDA

View Full Version : How do I build a UITableView with ON/OFF switchers ?




aneuryzma
May 22, 2011, 07:25 AM
How do I build a UITableView with ON/OFF switchers ?

Image: http://d.pr/y4UT

I thourht it was a predefined style but I couldn't find it.

thanks



MorphingDragon
May 22, 2011, 07:35 AM
You'd have to make a custom cell that has a Switch object. I think you can do it through Interface Builder.

I don't think apple provides a preset.

Shawnpk
May 22, 2011, 10:20 AM
How do I build a UITableView with ON/OFF switchers ?

Image: http://d.pr/y4UT

I thourht it was a predefined style but I couldn't find it.

thanks

Use Interface Builder. Drag a UITableViewCell and customize it any way you want.