天天看点

iOS数组中查找对象

NSPredicate *predicate = [NSPredicate predicateWithFormat:@"accountId == %@", snUser.accountId];
    NSArray *filteredArray = [userList filteredArrayUsingPredicate:predicate];