|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
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
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.