I only have this code in m. file
NSMutableArray * arrayOfBools;
arrayOfBools=[[NSMutableArray alloc] initWithCapacity:1000];
NSNumber *ijk =(NSNumber*) 9;
[arrayOfBools addObject:ijk];
Get error o this [arrayOfBools addObject:ijk];
You can’t declare and set an NSNumber like this:
NSNumber *ijk =(NSNumber*) 9;.This will set it to an integer (9).
Use this: