• 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: Reloading table view header or footer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reloading table view header or footer


  • Subject: Re: Reloading table view header or footer
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 06 Aug 2013 17:24:19 -0400

Have you tried any of these?

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.


GL.

On Aug 6, 2013, at 4:49 PM, Rick Mann wrote:

> I've been struggling with updating the content of a table view footer. I ended up creating a custom view that I hang on to, returning that from the delegate method, and then changing its content.
>
> But I'm looking at the Personal Hotspot UI in Settings, and I see that the section footer changes nicely when you enable and disable the hot spot. It resizes with animation, and the rest of the table doesn't change.
>
> How is this properly done?
>
> --
> 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


_______________________________________________

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: Reloading table view header or footer
      • From: Rick Mann <email@hidden>
References: 
 >Reloading table view header or footer (From: Rick Mann <email@hidden>)

  • Prev by Date: Reloading table view header or footer
  • Next by Date: Re: Reloading table view header or footer
  • Previous by thread: Reloading table view header or footer
  • Next by thread: Re: Reloading table view header or footer
  • Index(es):
    • Date
    • Thread