4

可能重复:
多个红色/破坏性按钮 UIActionSheet

 UIActionSheet *actionSheet = [[UIActionSheet alloc]
        initWithTitle:nil
        delegate:self
        cancelButtonTitle:@"Cancel"
        destructiveButtonTitle:@"Delete Today's Data"
        otherButtonTitles:@"Delete Week's Data",@"Delete Month's Data",nil];

iPhone 应用程序的 UIActionSheet 中是否有一个容易有超过 1 个红色“破坏性按钮”?

我想制作 1 个“删除”按钮……然后让 actionSheet 在 3-4 个不同的“删除选择”(或仅 1 个取消)之间询问/确认。

(而不是有 4 个不同的 DELETE 按钮......并且必须维护 4 个不同的 actionSheets......每个 1 个)

......还有......苹果会不会有这个想法提交给appStore的问题?

4

0 回答 0