博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
旧版本转换成支持ARC版本
阅读量:7224 次
发布时间:2019-06-29

本文共 875 字,大约阅读时间需要 2 分钟。

1.TARGETS --->build settings       搜索    compiler  

 

    找到  compiler for c/c++/objective-c    改成   APPLE LLVM compiler 3.0

 

2.TARGETS --->build settings       搜索     analyzer

 

    Run Static Analyzer   改成  YES

 

3.TARGETS --->build settings       搜索     automatic

 

    objective-c Automatic Reference Counting    改成YES

 

4.From Xcode's menu        

    

    Edit\Refactor\Convert to Objective-C ARC.    

 

5.Open the Xcode Preferences window (from the menubar, under Xcode) and go to the General tab.

    

    Enable the option Continue building after errors: 

 

6.修改代码

 

    eg.

- (void)onHelpViewAnimationComplete:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context {    UIImageView *imageView = (__bridge UIImageView *)context;    [imageView removeFromSuperview];    helpView = nil;}

 

    eg.

[UIView beginAnimations:nil context:(__bridge void *)helpView];

 

 

 

 

转载于:https://www.cnblogs.com/pengyingh/articles/2493753.html

你可能感兴趣的文章
Spring Cloud搭建微服务架构----服务网关
查看>>
引入JSCSS的另外一种方法
查看>>
鸟哥Linux私房菜基础学习篇 第一部分:Linux的规划与安装_计算机概论
查看>>
socket分析
查看>>
slf4j采用各种日志实现
查看>>
Android 判断网络连接
查看>>
【ZZ】进程与线程的一个简单解释
查看>>
【ZZ】Error: Agent admitted failure to sign
查看>>
使用守护进程supervisor管理logstash
查看>>
JAVA_TOOL_OPTIONS
查看>>
解决VStart等程序comct132.ocx/组件缺少错误
查看>>
适配器
查看>>
xmlns:android的说明
查看>>
深入解析最短路径算法
查看>>
Guava学习笔记:Preconditions优雅的检验参数
查看>>
MySQL 查询优化器(四)
查看>>
面试的70大技巧
查看>>
Ubuntu Android 开发(三) 使用SDK更新SDK 镜像
查看>>
Android屏幕适配
查看>>
tomcat环境简单部署
查看>>