Hi, All the examples I can find for UITableView use an array or core data to populate their contents. What about a table view like in the settings app, where you have a random assortment of cells, with odd grouping, and often varying cell types (eg, images and toggle switches)?
I have a few of these in my app and am struggling to write maintainable code. I'm using a horrible nested switch statement on indexPath.section and indexPath.row, to prepare each cell, with hardcoded section/row counts. What does everyone else do? Should I be treating code as data? Perhaps an array of NSInvocstion objects where the method configures the cell? - Abhi _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
