how to exit from currentrunloop
<p>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 .</p>

<p>Runloop is implemented as follows.</p>

<pre><code>while(!completed) {
    [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:2.0]];//[NSDate distantFuture]
}
</code></pre>

<p>Thanks in advance..</p>
