Re: Reloading table view header or footer
Re: Reloading table view header or footer
- Subject: Re: Reloading table view header or footer
- From: Rick Mann <email@hidden>
- Date: Tue, 06 Aug 2013 14:41:28 -0700
On Aug 6, 2013, at 14:24 , Alex Zavatone <email@hidden> wrote:
> reloadSections:withRowAnimation
>
> reloadRowsAtIndexPaths, perhaps? Or reloadSectionIndexTitles?
>
> Set an observer to the data record that is being used to populate that cell, then create a little method in your TV class that is triggered when that data value changes. Then within that method, issue the appropriate reload:
>
> [self.tableView reloadSections: mySectionIndexPath withRowAnimation: UITableViewRowAnimationNone ]
>
> or
>
> [self.tableView reloadSectionIndexTitles];
>
> or
>
> NSArray *mySectionIndex = [NSArray arrayWithObject[thatIndexPathForThisSection]]
> [ self.tableView reloadRowsAtIndexPath: mySectionIndex withRowAnimation: UITableViewRowAnimationNone];
>
> Not sure if reloading a cell that is a section header will really do a refresh on it, but it looks like reloadSectionIndexTitles sure will.
Unfortunately, of those that cause a section to reload, it makes all the cells reload, too, which is something I want to avoid.
--
Rick
_______________________________________________
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