首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

新手真机调试helloworld有关问题请问

2013-11-25 
新手真机调试helloworld问题请教master-detail application最简单的实验1、创建一个master-detail applicat

新手真机调试helloworld问题请教
master-detail application最简单的实验
1、创建一个master-detail application project,勾选storyboard
2、直接用模拟器run,没问题!
在xcode5.0和xcode4.5都通过

但小弟的真机是5.1系统,于是:
1、将project中的iOS development target 改成5.0
2、将project中的Use base internationalization取消勾选
3、将target的build settings的build active architecture only 改成yes
4、将storyboard的user Autolayout取消勾选
用6.0的模拟器测试通过,点击右边“+”号,效果如下
新手真机调试helloworld有关问题请问

单真机测试,可以出现界面,但点击右边“+”号,报错:
2013-11-16 02:15:53.759 test6[34367:707] CoreData: error: Serious application error.  An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:.  -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0x1d18d400 with userInfo (null)
无论在xcode5.0还是xcode4.5,都报错。


网上说:
Q:如何解决在iPhone程序开发中常遇到“unrecognized selector sent to instance”的问题?
A:造成该问题的大部分原因是对象被提前release了,在不希望它release的情况下,指针还在,对象已经不在了。主要是因为init初始化函数中,没有对属性使用self.[属性]=xxxx的方式赋值,而是直接对属性所对应的私有变量进行赋值,导致属性对象没有retain而提前释放。解决方法,使用self.[属性]=xxxx语句对属性赋值即可。

但小弟是刚学的,两眼一抹黑,请各位高手不吝赐教! ios5.1真机测试
[解决办法]
3楼 你看明白他想说什么了吗 ?

是不是你 项目中deployment target 是6.0的sdk

然后你用真机是5.0系统在执行。。。
[解决办法]
用 auto relase 模式,不需要自己管理内存。

热点排行