What is __NSCFArray in AFNetworking 2.0 response?

前端 未结 2 1401
野的像风
野的像风 2021-01-29 06:23

What is __NSCFArray in this AFNetworking 2.0 response:

- (void)loadData:(NSMutableArray *) resDic
{
    ... 
    [operation setCompletionBlockWithSu         


        
2条回答
  •  佛祖请我去吃肉
    2021-01-29 07:15

    NSArray is a class cluster. This basically means that NSArray objects could be made up of one of several different actual implementations and __NSCFArray is one of the classes (probably the most common) that NSArray can use to implement an array.

    Just use the __NSCFArray as you would any other NSArray and it'll work fine.

提交回复
热议问题