Method invocation with timer – even easier

0 Comments 27th APR 2009 | Posted by Ivan Kalaica in iPhone dev

Method invocation with timer – even easier

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!

If you like what you read, please share it.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Reddit
  • Technorati
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Netvibes
  • NewsVine
  • Sphinn
  • Tumblr
  • Posterous

To post code in comments, place your code inside [code] and [/code] tags.

Leave a Comment

Please wrap all source codes with [code][/code] tags.
Magento Design and Development | Magento SEO | iPhone Application Development Web Application Development with ZEND | WordPress Ecommerce | WordPress development
Sitemap

Inchoo - webappsolutions | 2009