\I have a view controller which starts a count down timer and updates a button label according to it.The problem is that when the user leaves the view and come back i do not want to restart the timer o continue from the paused time.What would be the best way to active it?
Making the timer in app delegate and post notification to the this view controller.Since the other view controllers do not need it they do not need to listen to any notification.The problem is that i have to make sure that the timer has run down to 0 to enable the button os it means when the view is loaded again i need to wait for the notification at least 1 second to make sure that he time is really up.The problem is what to show during this period on the button label.
If the view controller was a tab bar item i would be no problem but it is a pushedv view contller so it is released when the user taps on back.