开发者

create share menu and add images

开发者 https://www.devze.com 2022-12-18 11:52 出处:网络
I\'ve two questions for you, which i can\'t solve: 1) How do I create a menu like this --> (source: momolog.com)

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

1) How do I create a menu like this -->

create share menu and add images

(source: momolog.com)

.

2) How can I add multiple images like the iApp named HotBook do?

.

Thanks in advance for your开发者_开发技巧 help.

Sean


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消