标签:obj style bool code span col nbsp color using
1.
- (NSMutableArray *)filterUsingBlock:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))block { if (!block) { return [self mutableCopy]; } NSMutableArray *result = [NSMutableArray array]; NSUInteger idx = 0; BOOL stop = NO; for (id obj in self) { if (block(obj, idx, &stop)) { [result addObject:obj]; if (stop) { break; } } idx++; } return result; }
标签:obj style bool code span col nbsp color using
原文地址:https://www.cnblogs.com/javastart/p/10853673.html