IBAction不显示在界面构建器中 [英] IBAction doesn't show up in interface builder

查看:136
本文介绍了IBAction不显示在界面构建器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了

   - (IBAction)printCollection 

到我的类,但它不会显示在界面构建器中。我清理了内置的重新启动的界面生成器,但它没有显示。



以前的(IBAction),而是所有的...我不知道。



解决方案

   - (IBAction)printCollection: 

此外,请确保您已保存.h并且xib的文件所有者是正确的。 p>

I've added

- (IBAction)printCollection

to my class but it doesn't show up in interface builder. I've cleaned the built, restarted interface builder, but it doesn't show up.

The previous (IBAction) are instead all there... I don't get it.

thanks

解决方案

- (IBAction)printCollection:(id)sender;

Also, make sure you've saved the .h and the xib's File's Owner is correct.

这篇关于IBAction不显示在界面构建器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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