Hello. This is probably very simple for you guys to answer, but can't seem to find the answer anywhere.
I have a timer that I want to run a function every second. This is fine, all the functions are written. However, I seem to have to put the timer initialisation code into a function.
The code is:
Code:
[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(checkForSunset) userInfo:nil repeats:YES];
How do I get it to run when the view loads? Like in
VB, form_load or something similar...
I would imagine its basic C methodology, but I am a PHP developer and its a tough learning curve for me!
Thanks in advance.
Chris