Reputation: 110412
Is the following pull-up to "Set profile photo" below a customized UI element or a default one? If it's a default one, how would I add one to my iPhone app?
Upvotes: 1
Views: 56
Reputation: 62062
That's the new look for uiactionsheet. It's a default iOS7 UI element. In your screenshot, the "Set profile photo" part is set by the title
of the action sheet.
initWithTitle:delegate:cancelButtonTitle:destructiveButtonTitle:otherButtonTitles:
In iOS6, it looked like this:
Source: apple.developer.com
Upvotes: 0
Reputation: 4331
Its a UIActionSheet
for Documentation read: UIActionSheet
Basically it works like this:
- (void)iWantToShowAnActionSheet
{
UIActionSheet* sheet = [[UIActionSheet alloc] initWithTitle:@"Set profile photo"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Choose existing photo",@"Take new photo"];
[sheet showInView:self.view];//example for using it in viewcontroller.
}
For other ways to display it have a look at the demo (link provided at the top) under "Presenting the Action Sheet"
Upvotes: 1