• 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
[iPhone] UITableView with state?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iPhone] UITableView with state?


  • Subject: [iPhone] UITableView with state?
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Mon, 11 May 2009 17:16:55 -0400

I am using my own graphics for a tableview's cell background and selected
background (grouped tableview). I am using UILabels added to the
contentView, so I'm not setting the cell text directly at all. I have tagged
the labels (3 in each cell) so I can get to them later within the selection
callback method.


I can easily get the current section and row. However I'd like to be able to
get the previous selected cell to be able to reset it's UI. What do I mean?
The selected cell background is dark so I need to switch the texts to white
from black. But this means I need to reset the previous cells labels to
black again.


What's a good way to do this? Does that information come along for the ride
on the callback method for cell selection? Do I need to reset the cells
somehow and then change the text colors? It seems I have to implement some
sort of state to have this happen, or else there is an approved established
way to so this already.


Thanks,

Eric
_______________________________________________

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: [iPhone] UITableView with state?
      • From: Luke the Hiesterman <email@hidden>
  • Prev by Date: Re: Packages vs bundles vs folders etc
  • Next by Date: Re: Attr Str drawing vs Layout Manager drawing
  • Previous by thread: Re: NSFileHandleDataAvailableNotification problems
  • Next by thread: Re: [iPhone] UITableView with state?
  • Index(es):
    • Date
    • Thread