Reputation: 2910
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
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
Reputation: 2223
You mean UIActionSheet?
If so, yea its a separate class under UIView
!
Upvotes: 1