Flying_Banana
Flying_Banana

Reputation: 2910

What is the user interface class of slide up menus?

I'm wondering if there is a specific UI class that slides up to allow user to make a choice, like the "More" button on the safari or the interface confirming iDevice shut down. Both looks like UIToolBars but they seemed to be rendered so well (the button and the toolbar background) that I am starting to suspect it is a separate class designed specifically for such slide-up choices.

Or are they actually different UIViews with designed background that slides up using animateWithDuration:animations: and the background is a translucent mask? How did apple do it?

Upvotes: 1

Views: 275

Answers (3)

Abdullah Shafique
Abdullah Shafique

Reputation: 6918

UIActionSheet. Here is the code:

UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"Share" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"E-Mail",@"SMS", nil];
[actionSheet showInView:self.view]; 

Upvotes: 3

egghese
egghese

Reputation: 2223

You mean UIActionSheet? If so, yea its a separate class under UIView !

UIActionSheet

Upvotes: 1

Fonix
Fonix

Reputation: 11597

i think what you are looking for is an action sheet

enter image description here

Upvotes: 2

Related Questions