【发布时间】:2012-08-23 16:03:03
【问题描述】:
当我尝试通过单击 UIButton 来关闭弹出框时,我无法弄清楚为什么它不能正常工作,而 UIButton 本身位于要关闭的弹出框上,我的项目崩溃了...
- (IBAction) cancelButton: (id) sender{
//[self dismissPopoverAnimated:YES];
}
以上是我的 UIButton 代码
【问题讨论】:
-
崩溃消息是什么(在控制台中查看)?
-
在抛出“NSException”实例后调用终止程序收到信号:“SIGABRT”。 (gdb)
-
您的回调是否被指定为@selector(cancelButton) 且缺少冒号?