iphone开发基础教程 第11章例程的问题
摘要:z在《iphone开发基础教程》第11章的例子程序 Persistence第一版用到了这段程序UIApplication *app = [UIApplication sharedApplication]; [[NSNotificationCenter defaultCenter] addObserver:selfselector:@selector(applicationWillTerminate:)name:UIApplicationWillTerminateNotification object:app];书上说按home后 程序会触发 UIApplicationWillTerminate
阅读全文
posted @
2013-03-24 15:16
DDC's blog
阅读(260)
推荐(0)
unrecognized selector sent to instance (IOS开发遇到的问题)
摘要:今天在学习tableview,运行后发现tableview一往下拉程序就会奔溃,EXC_BAD_ACCESS ,错误信息是unrecognized selector sent to instance。郁闷了我一个下午。。。后来看到这个http://blog.csdn.net/theonezh/article/details/7967623终于解决了问题转“成unrecognized selector sent to instance XXX,大部分情况下是因为对象被提前release了,在你心里不希望他release的情况下,指针还在,对象已经不在了。很多时候,是因为init初始化函数中,对属
阅读全文
posted @
2013-03-17 01:34
DDC's blog
阅读(369)
推荐(0)