iOS5稳定应用程序在iOS4.3模拟器中崩溃 [英] iOS5 Stable App Crashing in iOS4.3 Simulator

查看:150
本文介绍了iOS5稳定应用程序在iOS4.3模拟器中崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到一个NSInvalidArgumentException,原因是: - [UITapGestureRecognizer initWithCoder:]:无法识别的选择器发送到实例

i am getting an NSInvalidArgumentException with reason: -[UITapGestureRecognizer initWithCoder:]: unrecognized selector sent to instance

我的理解是ios4.x支持UITapGestureRecognizers?

my understanding was that UITapGestureRecognizers were supported in ios4.x?

是否可以为sub ios5版本加载不同的xib文件?

is it possible to load a different xib file for sub ios5 versions?

推荐答案

正如@ mit3z在对原始问题的评论中所述,iOS 4.3仅在使用代码手动设置时才支持此功能。 Interface Builder不支持它。

As @mit3z states in his comment on the original question, iOS 4.3 supports this feature only when setup up manually with code. It is not supported with Interface Builder.

如果他们只是将此作为构建时间警告添加,那么Apple会让我们对此感到悲伤。

Apple would have saved us all grief over this if they simply added this as a build-time warning.

这篇关于iOS5稳定应用程序在iOS4.3模拟器中崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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