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

UITableView updating problem


  • Subject: UITableView updating problem
  • From: DKJ <email@hidden>
  • Date: Wed, 12 Aug 2009 19:15:39 -0700

I've got a UITableView where the colour of the row text can change depending on its place in the table. For example, a row may change colour if it's moved from the bottom to the top of the table; and sometimes its colour may change if another row is deleted or inserted.

The problem is that the text colour is not updated until the table reloads its data. So (e.g.) if I move a row from the bottom to the top, its colour doesn't change immediately.

I'd like the text colours to be updated when the table leaves edit mode. But according to the docs, I can't call reloadData in the tableview controller's commitEditingStyle or moveRowAtIndexPath methods. (I tried doing it anyway, and got into trouble.)

Is there any way I can get the table to update as soon as the user presses the Done button? Or even better, as soon as the row deletion or move is completed?

dkj

_______________________________________________

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 updating problem
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: Rotation and translation of an image
  • Next by Date: Re: NSPredicate & Editor questions
  • Previous by thread: Re: Rotation and translation of an image
  • Next by thread: Re: UITableView updating problem
  • Index(es):
    • Date
    • Thread