Stop Code Execution After Calling UIAlertView
iphone
Solution
Ended up using this:
...
[alert show];
while ((!alert.hidden) && (alert.superview != nil))
{
[[NSRunLoop currentRunLoop] limitDateForMode:NSDefaultRunLoopMode];
}
Problem
How can I stop code execution after showing UIAlertView until user pressed on the OK button? If that's a problem, what are the workarounds?