开发者

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 -->

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜