Why am I not able to use this?
__block NSString *tableStrings[4][2];
[userValues enumerateObjectsUsingBlock:^(NSNumber *userScore, NSUInteger idx, BOOL *stop) {
tableStrings[idx][0] = @"< 5";
tableStrings[idx][1] = @"> 95";
}];
The compiler is yelling at me of "Cannot refer to declaration with an array type inside block"
. I was under the impression that denoting __block
before the variable would allow this to be done. I can make it work with using NSString[x][x]
but I'm curious as to why this is not allowed.