So in my app a user can receive messages. I use awakeFromNib to update the badge value(which represents number of unread messages) of a tab bar item as soon as the tab bar controller loads (for a different tab bar item then the initial view) and then when I click on the view controller with the tab bar item that has the badge value, I make the badge value disappear. However, I want the badge value to reappear every time the user gets a new message. I have pull to refresh enabled but for some reason the badge value never reappears unless I restart the app or revisit the tab bar controller itself (I have to log out then log back in to do that in my app). Any solutions?
Edit: The class with the tab bar item that has the badge value is a subclass of UITableViewController if that makes a difference...