ios - How to display a timer in different UIViewControllers in Swift? -
i display timer (minutes , seconds) in different viewcontrollers of application. how can ?
i thinking use timer singleton, how update right label every seconds ?
the easiest way - use nsnotificationcenter singleton or can create array delegates , call method when timer update, viewcontrollers in array receive messages
Comments
Post a Comment