• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Non-data backed UITableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Thread not registered mystery under GC
  • Next by Date: CoreDataGeneratedAccessors
  • Previous by thread: Re: How to translate the app display name in iPhone
  • Next by thread: CoreDataGeneratedAccessors
  • Index(es):
    • Date
    • Thread