0

我有两个问题要问你,我无法解决:

1)我如何创建这样的菜单--> (来源:momolog.com 。 2) 如何添加多个图像,例如名为 HotBook 的 iApp? . 在此先感谢您的帮助。 肖恩例子





4

1 回答 1

1

旧帖子,但这可能会帮助其他遇到该页面的人...

对于#1,这是一个 UIActionSheet。你可以用这个实例化它:

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

请注意,您的 UIViewController 必须符合 UIActionSheetDelegate 协议。

于 2010-06-02T18:43:00.730 回答