AFNetworking 2.0错误:具有“保留(或强)”属性的属性必须是对象类型[重复]

时间:2021-12-22 06:59:25

This question already has an answer here:

这个问题在这里已有答案:

Updated my project to AFNetworking, Xcode show this error:

将我的项目更新为AFNetworking,Xcode显示此错误:

@property (nonatomic, strong) dispatch_queue_t completionQueue;

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

具有“保留或强”属性的属性必须是对象类型。

I cannot understand why the official example there is no error warning?

我不明白为什么官方的例子没有错误警告?

1 个解决方案

#1


21  

I get it, because I test on iOS5, dispatch_queue_t is objcet begin at iOS6

我明白了,因为我在iOS5上测试,dispatch_queue_t是从iOS6开始的objcet

#1


21  

I get it, because I test on iOS5, dispatch_queue_t is objcet begin at iOS6

我明白了,因为我在iOS5上测试,dispatch_queue_t是从iOS6开始的objcet