如何在iphone中使用特定的UIActionSheet按钮进行一些操作(简要说明)?

时间:2010-04-09 05:40:05

标签: iphone objective-c

如何在iphone中使用特定的UIActionSheet按钮进行一些操作(简要说明)?

1 个答案:

答案 0 :(得分:0)

您必须实现UIActionSheetDelegate协议。您正在寻找的方法是

- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex

你必须检查buttonIndex然后你可以做任何你想做的事。