【发布时间】:2012-03-18 19:11:29
【问题描述】:
我创建了一个UIActionSheet
UIActionSheet * action = [[UIActionSheet alloc]initWithTitle:@""
delegate:self
cancelButtonTitle: @"cancel"
destructiveButtonTitle: @"OK"
otherButtonTitles: nil];
[action showInView:self.view];
[action release];
在UIActionSheet 中的取消按钮事件上,我想触发UIBarButtonItem 的事件,这在我看来。
我的问题是如何在UIActionSheet 委托方法中触发按钮事件(不触摸按钮)
【问题讨论】:
-
当用户点击 UIBarButtonItem 时你调用的是哪个方法?
-
我的处境很混乱。我在这个
UIBarButtonItem上有一个UIButton。点击UIButton,我加载了UIActionSheet。点击UIActionSheet中的取消按钮,我需要触发UIBarButtonItem的事件。 -
Paul 我不明白,如果你的
UIBarButtonItem在UIButton之下,为什么你要创建UIBarButtonItem?
标签: iphone ios events uibarbuttonitem uiactionsheet