如何解决Delegates properties with ARC错误
来源:互联网 发布:上海移动数据流量套餐 编辑:程序博客网 时间:2024/05/26 20:20
项目选择了ARC的问题导致:existing instance variable for property 'delegate' for unsafe_unretainedproperty 'delegate' must be __unsafe_unretained
解决方法:
将原来的:
@interface SDWebImageDownloader :NSObject
{
@private
id<SDWebImageDownloaderDelegate> delegate;
NSURLConnection *connection;
NSMutableData *imageData;
}
@property (nonatomic,assign) id<SDWebImageDownloaderDelegate> delegate;
修改为:
@interface SDWebImageDownloader : NSObject
{
@private
NSURLConnection *connection;
NSMutableData *imageData;
}
@property (nonatomic, assign) id<SDWebImageDownloaderDelegate> delegate;
0 0
- 如何解决Delegates properties with ARC错误
- 在iOS 中创建自定义Delegates properties with ARC错误的解决方法
- Tricks with delegates
- Callbacks with Delegates [转]
- Working with Delegates
- Extend with Delegates
- Delegates in JAVA with MethodHandle
- 如何选择Blocks还是Delegates
- 解决错误:build.properties does not exist
- 类似ARC forbids explicit message send of'release' 错误解决
- arc项目中使用不支持arc的依赖库时编译错误的解决
- 实时错误91,对象变量或with块变量未设置,如何解决?
- 502错误如何解决
- 如何解决段错误
- JBoss配置jndi.properties错误解决一例
- Using Delegates with Data Readers to Control DAL Responsibility
- Effective C#之21:Express Callbacks with Delegates
- Delegates, Events and Singletons with Unity3D – C#
- oracle创建用户名表空间
- 关于日期的转化--把00:00:00转化城0.00小时!
- 栈的顺序存储实现
- 软件测试职业发展,到底该向何处?
- Ubuntu 配置 Tomcat
- 如何解决Delegates properties with ARC错误
- 指针定义 初始化
- C2第九次解题报告
- 搜索引擎初探
- 值得阅读学习 C 语言开源项目代码(后续添加中...)
- Using Auto Layout for iOS
- 设计模式——六大原则
- 手动内存管理转ARC项目实战
- 一步一步学zedboard之七单独编译u-boot