NSArray *patientenWeiblich = [NSArray arrayWithObjects:NO, NO, NO , nil];
You can't put primitive types into NSArray. In your case compiler is silent just because NO
is 0 which is effectively nil
. So, you get an empty NSArray.
You should wrap them with NSNumber
first:
NSArray *patientenWeiblich = [NSArray arrayWithObjects:@(NO), @(NO), @(NO) , nil];
And afterwards get the value with:
[[patientenWeiblich objectAtIndex:i] boolValue];