The short answer is in the code below:
// Do nothing
The long answer is like this:
You do not have an array as you described. The correct code would be:
myArray=@[ @0, @0, @1]; // NSArray instance of NSNumber instances.
You do not want to have an array as you described. The correct code would be:
myArray=@[ @NO, @NO, @YES]; // NSArray instance of NSNumber instances.
Since both NSNumber instances containing integer values or boolean values are the same, [@0 boolValue] will return NO and [@1 boolValue] will return YES. So you already have, what you want to get.
Your real problem is the translation of values (integer or boolean, while boolean values are integer values) into a string. You can use a number formatter for this or simply a conditional expression:
BOOL b = [myarray[0] boolValue];
mystring = b?@"true":@"false";
myArray=[false,false,true];This is not a value array in Obj-C. The objects should confine to typeidmyArray=[@0,@0,@1]is not valid either, should bemyArray=@[@0,@0,@1]. ;-)