Hi all, I used NSRunloop in my application. While going from my current controller i need to exit from the run loop also. How can i exit from current run loop .
Runloop is implemented as follows.
while(!completed) {
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:2.0]];//[NSDate distantFuture]
}
Thanks in advance..