Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## header file
- NSUInteger numTimes;
- ## implementation file
- - (void)viewDidLoad {
- [super viewDidLoad];
- ...
- [NSTimer scheduledTimerWithTimeInterval:4 target:self selector:@selector(myMethod) userInfo:nil repeats:YES];
- }
- - (void)myMethod {
- numTimes++;
- //NSLog("CallsToGPS: %d", numTimes);
- }
Add Comment
Please, Sign In to add comment