NSTimer:timerWithTimeInterval:target:selector:userInfo:repeats:
+(NSTimer *) timerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats
## example
#import "MyObject.h"
@implementation MyObject
NSTimer *timer;
- (IBAction)myAction:(id)sender
{
timer = [NSTimer timerWithTimeInterval:1
target:self
selector:@selector(timerControl)
userInfo:nil
repeats:YES];
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode];
}
- (IBAction)fire:(id)sender
{
}
- (IBAction)stop:(id)sender
{
}
-(void) timerControl{
NSLog(@"...");
}
@end