How can i get a plain basic dialogue box in cocoa touch.seems so simple but I can figure it out...
Thanks!
How can i get a plain basic dialogue box in cocoa touch.seems so simple but I can figure it out...
Thanks!
Create an NS Window
using the Interface Builder. In your appdelegate, open the window.
You want the UIAlertView class. For example:
UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"Something happened"
message:@"And here is some more information about what it is."
delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[myAlert show];
[myAlert release];
Another option is CFUserNotification. The advantage to UIAlertView is that it does not require you to link against UIKit.