• 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
UITableView Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UITableView Selection


  • Subject: UITableView Selection
  • From: Phillip Mills <email@hidden>
  • Date: Tue, 2 Nov 2010 12:15:09 -0400

I have an application with a split view, master/detail design.  The 'master' items are dynamically created and vary in number.  When I start the application, I load these for use by the table view's data source during the root view controller's viewDidLoad and everything works quite well.  Except....

I'd like the application to automatically select the item that was selected when it was last exited.  I can't do this in viewDidLoad because the table hasn't been populated yet.  There also seems to be no delegate method for dealing with the end of a set of cell requests.  Currently, my best idea is to subclass UITableView, override layoutSubviews so that I know when 'super' has finished, and (if it's the first time through) append selection logic.  This strikes me as a clumsy was of doing something that probably should be simple.

Suggestions for a cleaner approach would be appreciated._______________________________________________

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

  • Follow-Ups:
    • Re: UITableView Selection
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Notifications on main thread
  • Next by Date: Re: UITableView Selection
  • Previous by thread: IKImageView vs sibling views as part of a window's contentView hierarchy
  • Next by thread: Re: UITableView Selection
  • Index(es):
    • Date
    • Thread