Sean
Sean

Reputation: 333

create share menu and add images

I've two questions for you, which i can't solve:

1) How do I create a menu like this --> Example
(source: momolog.com)
.
2) How can I add multiple images like the iApp named HotBook do?
.
Thanks in advance for your help.
Sean

Upvotes: 0

Views: 505

Answers (1)

bigmac
bigmac

Reputation: 717

Old post, but this may help others who come across the page...

For #1, that's a UIActionSheet. You can instantiate it with this:

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Share" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"On Facebook", @"On Twitter", nil];
    [actionSheet showInView:self.view];
    [actionSheet release];  

Note that your UIViewController must conform to the UIActionSheetDelegate protocol.

Upvotes: 1

Related Questions