In a navigation controller based iphone app with two view controllers. I have to make use of a timer. That timer should be accessible from both view controllers. Should this timer be created in app delegate so that both view controllers can access it
The first view controller takes some entries in text fields and starts a timer based on these. The next view controller shows the time elapsed since the start of the timer. This means the UILabel on 2nd view controller needs to be updated after some pre-defined time interval based on entries from first controller.
Can we use NSTimer for iphone? If not then what other option can be used?
Thanks
Arnieterm
The first view controller takes some entries in text fields and starts a timer based on these. The next view controller shows the time elapsed since the start of the timer. This means the UILabel on 2nd view controller needs to be updated after some pre-defined time interval based on entries from first controller.
Can we use NSTimer for iphone? If not then what other option can be used?
Thanks
Arnieterm