In my last post I written how to code an method invocation with timer. Since then I’ve found yet even easier way to achieve that. All this updating post’s work is part of growing up with the iPhone development, so don’t be surprised if I add something one more time to the same post. Well, that’s why there is same image for this and last post.
See code below and all will be clear.
- (void) viewDidLoad {
[NSTimer scheduledTimerWithTimeInterval:3.0f target:self selector: @selector(myMethod) userInfo:nil repeats:YES];
[super viewDidLoad];
}
- (void) myMethod {
NSLog(@"Method execution");
}
And that is it. Again!


