首页 > Web开发 > 详细

AFNetworking编译报错  Property with 'retain (or strong)' attribute must be of object type

时间:2015-03-23 15:05:11      阅读:1701      评论:0      收藏:0      [点我收藏+]

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 (nonatomicstrong) dispatch_queue_t completionQueue;

#else

@property (nonatomicassigndispatch_queue_t completionQueue;

#endif

/**

 The dispatch group for `completionBlock`. If `NULL` (default), a private dispatch group is used.

 */

#if OS_OBJECT_USE_OBJC

@property (nonatomicstrong) dispatch_group_t completionGroup;

#else

@property (nonatomicassigndispatch_group_t completionGroup;

#endif

AFNetworking编译报错  Property with 'retain (or strong)' attribute must be of object type

原文:http://www.cnblogs.com/shnuzxw/p/4359767.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!