Non-data backed UITableView?
Non-data backed UITableView?
- Subject: Non-data backed UITableView?
- From: Abhi Beckert <email@hidden>
- Date: Thu, 28 Oct 2010 04:50:57 +1000
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@hidden)
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:
This email sent to email@hidden