NSMutableArray *arrayM = [[NSMutableArray alloc] initWithObjects:@"00",@"11",@"22",@"33",@"44",@"55",@"66",@"77",@"88", nil];
NSArray *arrayB = @[@(2),@(3),@(5),];
for (int j=0; j<arrayB.count; j++) {
NSString *aaa= [arrayB objectAtIndex:j];
int bbb=[aaa intValue];
[arrayM removeObjectAtIndex:bbb];
}
NSLog(@"%@",arrayM);
网友评论