无法插入新的操作连接错误 [英] Could not insert new action connection Error

查看:174
本文介绍了无法插入新的操作连接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试通过将UIButton中的蓝色箭头拖到我的头文件(你知道,XCode 4的这个新功能......)来尝试为UIButton创建新动作时,我得到了这个错误。

I get this error, when try to create new action for UIButton by dragging blue arrow from UIButton to my header file (you know, this new feature of XCode 4...)

当我自己在代码中创建动作并以旧方式连接时,只需将按钮拖动到文件所有者,它就可以正常工作

When I create action in code by myself and connect it in old way, simply by dragging from button to File's Owner, it's works well

这是截图:

Here's screenshot:

推荐答案

确保您的.m文件存在于项目和磁盘上。使用 @implementaiton - @end 块确保其正确无误。在Xcode中打开它,关闭它,如果错误仍然存​​在,重新启动Xcode。

Make sure your .m file exists in the project and on disk. Make sure it is correct with an @implementaiton-@end block. Open it in Xcode, close it, if the error persist, restart Xcode.

Xcode正试图写入 EditPUViewController.m (在 dealloc 方法等)但找不到它。

Xcode is trying to write to EditPUViewController.m (in the dealloc method etc.) but could not find it.

此外,使用 +来彻底清理项目总是有帮助的 + + K

Also, it always helps to hard-clean the project with +++K.

这篇关于无法插入新的操作连接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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