gpt4 book ai didi

ios - 如何在 xcode 中创建 "delete"操作表?

转载 作者:行者123 更新时间:2023-11-28 18:44:45 25 4
gpt4 key购买 nike

如何创建如下所示的删除确认?

最佳答案

那是一个 UIActionSheet 的实例.红色按钮称为“破坏按钮”,黑色按钮称为“取消按钮”。

这是一个演示:

UIActionSheet *actSheet = [[UIActionSheet alloc] initWithTitle:@"The text to show on top. (Like the message about wiping the phone.)"delegate:nil cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete everything" otherButtonTitles:nil];
[actSheet ShowFromToolbar:self.toolbar];
[actSheet release];

关于ios - 如何在 xcode 中创建 "delete"操作表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5828691/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com