摘要: 自ios SDK 5.0 苹果引用arc机制 三方库在编译上就出现了问题,这里解决办法可以部分ARC或者部分不选择ARC 方法如下: 如果当前的项目启用了ARC,而引用的第三方类库未使用ARC,那还需要在项目信息的Targets – Build Parses里找到第三方类库的.m文件,并为它们加上-fno-objc-arc标记。 对于在未启用ARC的项目用引用使用了ARC的第三方类库,则需要为第三方类库的.m文件加上-fobjc-arc标记。 另外可以通过一个编译器指令__has_feature(objc_arc)来检测项目是否使用了ARC,具体见http://clang.llvm.org.. 阅读全文
posted @ 2013-08-01 22:18 Asial 阅读(217) 评论(0) 推荐(0) 编辑
摘要: IOS 6 以前的方法1 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation2 3 {4 5 NSLog(@"shouldAutorotateToInterfaceOrientation");6 7 return (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft || toInterfaceOrientation == UIInterfaceOrientationL 阅读全文
posted @ 2013-08-01 21:47 Asial 阅读(262) 评论(0) 推荐(0) 编辑