标签:des http io ar os 使用 sp for div
打包时出现的错误,原因是shareSDK不支持64位
解决方法:
将图示蓝色部分改为
即可解决
选择真机调试时出现的错误
原因:当时我是选择在4s调试,工程上系统设置为
显然与4s配置不符,导致不能运行解决方法:改为7.0以下版本即可
ARC forbids explicit message send of ‘dealloc’的解决方案 (2012-04-18 11:20:04)转载▼
标签: it
在iOS SDK 5.0中使用ARC之后,有些东西咱们还是得在对象销毁的时候做,比如说注销Observer什么的,这个时候还是得重写dealloc方法。但是调用[super dealloc]时系统会提示ARC forbids explicit message send of ‘dealloc’,怎么办呢?
根据苹果官方文档(https://developer.apple.com/library/ios/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html)的精神,我们无需在重写的dealloc中添加[super dealloc],因为sdk在编译的时候会自己添加上去。
官方文档相关描述如下:
You may implement a dealloc method if you need to manage resources other than releasing instance variables. You do not have to (indeed you cannot) release instance variables, but you may need to invoke [systemClassInstance setDelegate:nil] on system classes and other code that isn’t compiled using ARC.
Custom dealloc methods in ARC do not require a call to [super dealloc] (it actually results in a compiler error). The chaining to super is automated and enforced by the compiler.
标签:des http io ar os 使用 sp for div
原文地址:http://www.cnblogs.com/z-j-w/p/4083562.html