注意BOOL是不能直接存放在NSMutableArray中的NSNumber* yesObj = [NSNumber numberWithBool:YES]; NSMutableArray* arr = [[NSMutableArray alloc] initWithObjects: yesObj, yesObj, yesObj, yesObj, nil]; NSLog(@"%d", [[arr objectAtIndex:] boolValue]);