Recommendations for implementing modal alert mode with Cocoa Touch?

Does anyone have the best recommendations, tips, and tricks or recommendations for creating modal alerts using Cocoa Touch?

I like to think that there is a way to make this difficult task trivial, or at least simpler.

+4
source share
3 answers

You can use something like this:

void AlertWithMessage(NSString *message) { /* open an alert with an OK button */ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Name of the Application" message:message delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alert show]; [alert release]; } 
+13
source

I just use UIAlertView to display modal alerts. What additional functionality are you looking for?

+1
source

Check out Apple's UICatalog sample code. It shows the use of both alerts and sheets on the phone.

+1
source

All Articles