Hi,
whenever you need an Alert prompt, you simply need to create an object of UIAlertView and show the object wherever alert prompt is needed.
For example -
UIAlertView *alertView= [[UIAlertView alloc] initWithTitle:@"CAUTION" message:@"message written in alertview" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
if ( condition)
[alertView show];
-and the alert prompt will be shown after if condition .
0 Comment(s)