• 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
Re: [iPhone] Animate tableView reloadData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] Animate tableView reloadData


  • Subject: Re: [iPhone] Animate tableView reloadData
  • From: Luke the Hiesterman <email@hidden>
  • Date: Fri, 11 Dec 2009 06:49:29 -0800

There's a set of methods in UITableView for animated table updates. All the insert/delete/road calls should be within a beginUpdates/ endUpdates block.

- (void)beginUpdates; // allow multiple insert/delete of rows and sections to be animated simultaneously. Nestable
- (void)endUpdates; // only call insert/delete/reload calls inside an update block. otherwise things like row count, etc. may be invalid.


- (void)insertSections:(NSIndexSet *)sections withRowAnimation: (UITableViewRowAnimation)animation;
- (void)deleteSections:(NSIndexSet *)sections withRowAnimation: (UITableViewRowAnimation)animation;
- (void)reloadSections:(NSIndexSet *)sections withRowAnimation: (UITableViewRowAnimation)animation __OSX_AVAILABLE_STARTING (__MAC_NA,__IPHONE_3_0);


- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation: (UITableViewRowAnimation)animation;
- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation: (UITableViewRowAnimation)animation;
- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation: (UITableViewRowAnimation)animation __OSX_AVAILABLE_STARTING (__MAC_NA,__IPHONE_3_0);


Luke

On Dec 11, 2009, at 3:53 AM, Philip Vallone wrote:


Hi List,

I have a table that gets reloaded when a user presses a button. Is it possible to animate reloadData and if so can you point me in the right direction?

Thanks

Phil

_______________________________________________

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

_______________________________________________

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] Animate tableView reloadData
      • From: Philip Vallone <email@hidden>
References: 
 >[iPhone] Animate tableView reloadData (From: Philip Vallone <email@hidden>)

  • Prev by Date: [iPhone] Animate tableView reloadData
  • Next by Date: Re: Binding an Array of Dictionaries
  • Previous by thread: [iPhone] Animate tableView reloadData
  • Next by thread: Re: [iPhone] Animate tableView reloadData
  • Index(es):
    • Date
    • Thread