UA-17470720-3

Jump to content


Photo
- - - - -

Refreshing a section defined in Interface Builder

sections

  • Please log in to reply
1 reply to this topic

#1 growingthefaith

growingthefaith

    Starting Out

  • STV 5.0 Pro
  • Pip
  • 1 posts
Reputation: 0
Neutral

Posted 07 February 2015 - 04:00 PM

If I have a section defined in the interface builder as an SCArrayOfObjectsSection. It feeds from an NSMutableArray, but the array isn't populated when the view starts - it gets pulled in later. 

 

How do I tell the section to refresh when the array updates?

 

Thanks!



#2 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 07 February 2015 - 04:05 PM

[self.tableViewModel reloadBoundValues];
[self.tableViewModel.tableView reloadData];

use this in code in the complete area when the array updates


  • Tarek likes this

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.






Also tagged with one or more of these keywords: sections

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users