Modal Alert
I'd like to display a simple message box (UIAlertView or whatever) in a modal manner, something like:
-(void) myfunc
{
display modalmessage(@"Some message");
do some_otherstuff();
}
I'd like to have the function do some_otherstuff() be called only when user dismisses the message box that gets displayed in the display modalmessage() function.
What is the correct way to do this in iPhone SDK?
Haven't been able to create an NSAlert in iPhone SDK, as #import <NSAlert.h> fails.
Haven't seen a way to create a modal UIAlertView either.
What are the options?
What is in general the way to display modal views to the user? (where modal means not only blocking background UI, but also blocking code execution in a local run loop or something --as in the example above).
Thanks.
Mac OS X (10.5.3), Mac Mini