UA-17470720-3

Jump to content


Photo
- - - - -

Set subtitle based on bound object value


  • Please log in to reply
2 replies to this topic

#1 RaduGrama

RaduGrama

    Jr. Member

  • STV 5.0 Pro
  • PipPip
  • 29 posts
  • LocationTampa, FL
Reputation: 6
Good

Posted 05 April 2016 - 09:42 AM

What would be the best action to use to calculate a value based on other bound object values (e.g. FullName or FormattedAddress) and set it to the subtitle of a cell?



#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452
Popular

Posted 05 April 2016 - 09:47 AM

Hi Radu,

 

Best place is cellActions.didLayoutSubviews. In case these values change in a way that you need to update them whenever the cell is displayed, cellActions.willDisplay would be the better choice. If you're not sure, start with didLayoutSubviews.



#3 RaduGrama

RaduGrama

    Jr. Member

  • STV 5.0 Pro
  • PipPip
  • 29 posts
  • LocationTampa, FL
Reputation: 6
Good

Posted 05 April 2016 - 11:25 AM

Thank you, Tarek. It worked with cellActions.willDisplay, it worked intermittently with cellActions.didLayoutSubviews.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users