你怎么称呼这个iOS 7控件?

时间:2014-02-08 19:24:01

标签: ios controls

我希望在我的iOS应用程序中添加一个看起来像这个菜单底部的控件:

http://media.idownloadblog.com/wp-content/uploads/2013/11/WhatsApp-iOS-7-uodate-image-002.jpg

有谁可以告诉我这是什么控制?看起来不像Picker View。

1 个答案:

答案 0 :(得分:4)

那是UIActionSheetOfficial Documentation

无法从UI元素列表中拖入。它以编程方式呈现,与UIAlertView非常相似。

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Title" 
    delegate:self cancelButtonTitle:@"Cancel Button" 
    destructiveButtonTitle:@"Destructive Button" 
    otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];

[actionSheet show];