我说的是当您需要确认某项操作时底部带有按钮的小窗口。比如你想从相册中删除一张照片,按下垃圾桶图标,底部会跳出一个小 View ,询问你是要删除照片还是取消
如何显示这些 View ?
最佳答案
使用 UIActionSheet。
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Some Action"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"OK"
otherButtonTitles: nil];
actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
[actionSheet showInView:self.view];
[actionSheet release];
关于iphone - 如何让底部的那些小 View 出现在 iOS SDK 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5575244/