Yep, that's exactly what it is: the NS* containers can only store objective-C objects, not primitive types.
You should be able to accomplish what you want by wrapping it up in an NSNumber:
[updated_users replaceObjectAtIndex:index withObject:[NSNumber numberWithBool:YES]]
or by using @(YES)
which wraps a BOOL
in an NSNumber
[updated_users replaceObjectAtIndex:index withObject:@(YES)]]
You can then pull out the boolValue:
BOOL mine = [[updated_users objectAtIndex:index] boolValue];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…