【发布时间】:2011-11-07 04:47:24
【问题描述】:
我正在尝试创建一个具有 3 个选项且没有“取消”按钮的 UIAlertView,但是当我这样做时,它总是将“按钮 3”设置为取消按钮。有什么办法可以避免吗?
UIAlertView *alertView= [[UIAlertView alloc] initWithTitle:@"Select One" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:@"Button 1",@"Button 2", @"Button3", nil];
【问题讨论】:
-
从文档来看,似乎没有什么令人惊讶的方法。我还在玩它,但取消按钮似乎默认为其他按钮之一。
-
此时我已经完成了操作表。不是我想要的方式,所以如果有人知道如何使警报视图工作,请随时加入。
标签: iphone button uialertview cancel-button