数组的解析方式

if(!_dataArray) {

_dataArray= [[NSMutableArrayalloc]initWithCapacity:0];

}

[WM_NetworkServicegetorderDetailByCK_id:self.CK_idwithBlock:^(NSDictionary*result,NSError*error) {

debugLog(@"result%@", result);

NSArray* array = [[WM_NetworkManagershareInstance]arrayWithJsonString:result[@"result"]];

[arrayenumerateObjectsUsingBlock:^(id_Nonnullobj,NSUIntegeridx,BOOL*_Nonnullstop) {

OutInListModel* model = [[OutInListModelalloc]init];

[modelsetValuesForKeysWithDictionary:obj];

[_dataArrayaddObject:model];

outViewHeader.model= model;

}];

number=5;

[_tableViewreloadData];

}];

你可能感兴趣的:(数组的解析方式)