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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -