objective C将对象添加到视图中

时间:2011-12-13 16:41:43

标签: objective-c cocoa-touch uiactionsheet

我是iPhone App Developpment的新手,我正在使用XCode 4.2

我想实现一个与此类似的列表,但我不知道它的名称是什么(它是出现在相册中的选项列表):

it is a list of options that appears in the photo Album

由于

1 个答案:

答案 0 :(得分:1)

结帐UIActionSheet - Apple Class Reference

 options = [[UIActionSheet alloc] 
               initWithTitle:nil
               delegate:self 
               cancelButtonTitle:@"Cancel"              
               destructiveButtonTitle:nil
               otherButtonTitles:@"Email Photo", @"Message", @"Assign to Contact", @"Use as Wallpaper", @"Tweet", @"Print", nil];

[options showInView:self.view];
[options release];