You can prepare the cell in Interfacebuilder, associate it with the IBOutlet of your Viewcontroller, and return it when the tableview asks for the correct row.
Instead, you can create a separate xib for the cell (again with IB) and load it with UINib when creating the cells.
Finally, you can create the switch programmatically and add it to your content content content or content.
Which one suits you best depends a lot on what you like to do. If your table contents are fixed (for the settings page, etc.), the first two may work well, if the content is dynamic, I would prefer a software solution. Please be more specific in what you would like to do, this would facilitate the answer to your question.
Toastor Sep 22 '10 at 14:13 2010-09-22 14:13
source share