more...
more...
more...
more...
more...
more...
more...
I want to tell one timer to start and if I press cancel, invalidate it. Then If I press start again, call the second timer. (I do this because I read that you can't reuse a timer after you invalidate it).
You don't need to do this. You can use the same NSTimer * pointer multiple times, you will just need to assign a new NSTimer object to it after you invalidated your first NSTimer object (or 2nd, or 3rd, etc..).
Basically, you only need 1 NSTimer object pointer, setup as an instance variable and your various IBActions :
(now, sorry for any syntax/compile error, I'm not opening Xcode here, just typing it out)
@interface ATimerViewController: UIViewController {
Pokemon raichu coloring pages
pokemon-coloring-pages2.jpg
You don't need to do this. You can use the same NSTimer * pointer multiple times, you will just need to assign a new NSTimer object to it after you invalidated your first NSTimer object (or 2nd, or 3rd, etc..).
Basically, you only need 1 NSTimer object pointer, setup as an instance variable and your various IBActions :
(now, sorry for any syntax/compile error, I'm not opening Xcode here, just typing it out)
@interface ATimerViewController: UIViewController {