IBAction UIButton和EXC_BAD_ACCESS [英] IBAction UIButton and EXC_BAD_ACCESS

查看:85
本文介绍了IBAction UIButton和EXC_BAD_ACCESS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我写的.h文件中

-(IBAction)openShuffleForm;

和.m

-(IBAction)openShuffleForm{
   NSLog(@"XXXXXXX");
}

,甚至可以在里面进行修饰 但是当我运行程序时,错误显示此消息

and connect with even touch up inside but when I run my program it error show this message

-[UITouchData openShuffleForm]:无法识别的选择器发送到实例0x391cc20

-[UITouchData openShuffleForm]: unrecognized selector sent to instance 0x391cc20

**我不知道为什么会发生什么?

** What happen I don't know why?

推荐答案

在我来说,这是我打开后释放的模式窗口.因此,我单击尝试调用ANY IBAction的任何按钮都无法从该模式视图中运行,并杀死具有SIGBART或BAD_EXEC错误的应用程序.

In my case it was a modal window which I released after opening. Thus any button which I clicked to try to call ANY IBAction would not work from that Modal View and kill the app with SIGBART or BAD_EXEC errors.

这篇关于IBAction UIButton和EXC_BAD_ACCESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆