我希望在我的iOS应用程序中添加一个看起来像这个菜单底部的控件:
有谁可以告诉我这是什么控制?看起来不像Picker View。
答案 0 :(得分:4)
那是UIActionSheet
。 Official 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];