NSMutableArray * array;
for (int i = 0; i< 1000; i++) {
__block Api * api = [[Api alloc] init];
[array addObject:api];
[api fetch:[@(i) stringValue] callBack:^(NSString *res) {
NSLog(@"回到了oc%@",res);
[array removeObject:api];
}];
}
一个bug,数组为空,对象也不会被释放