i know how to start NSTimer and i given the code for this but now i want to stop the NSTimer after 3 or 4 minutes but how can i do this
i know how to give NSTimer but how to stop after 3 minutes need some help
NSTimer* myTimer;
myTimer= [NSTimer scheduledTimerWithTimeInterval: 2.0 target: self
selector: @selector(updateUIinMainThread:) userInfo: nil repeats: YES];
Declaration :
Code :
Hope this helps