欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

Property with #39;retain (or strong)#39; attribute must be of object type

发布时间:2025/5/22 编程问答 42 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Property with #39;retain (or strong)#39; attribute must be of object type 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

AFNetworking 2.0 当Deployment Target 低于6.0时,AFURLConnectionOperation.h,AFURLSessionManager.h

@property (nonatomic, strong) dispatch_queue_t completionQueue;

因为sdk低于6.0时,dispatch_queue_t  ARC没有托管,出现提示错误

Property with 'retain (or strong)' attribute must be of object type

改动为

#if OS_OBJECT_USE_OBJC @property (nonatomic, strong) dispatch_queue_t completionQueue; #else @property (nonatomic, assign) dispatch_queue_t completionQueue; #endif


总结

以上是生活随笔为你收集整理的Property with #39;retain (or strong)#39; attribute must be of object type的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。