1
zhangchioulin OP 先把NSArray赋值给 NSMutableArray修改完返回一个新的NSArray
|
2
pheyer 2015-08-01 21:09:32 +08:00 1
@implementation NSArray (Additions)
- (instancetype)arrayByRemovingObject:(id)object { return [self filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"SELF != %@", object]]; } @end |
3
zhangchioulin OP @pheyer 能解释下吗。。。没懂
|