How to add an action sheet to an iPhone application

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Choose either one option" delegate:self cancelButtonTitle:@"I don’t need that" destructiveButtonTitle:@"I want to go there" otherButtonTitles:nil];

[actionSheet showInView:self.view];

[actionSheet release];

Action sheets come to handy when the application wants to prompt the user with options and user should not continue without selecting one option.

No comments: