Init array with bool values

Posted by iFloh on Stack Overflow See other posts from Stack Overflow or by iFloh
Published on 2010-05-11T10:52:44Z Indexed on 2010/05/11 11:04 UTC
Read the original article Hit count: 259

Filed under:
|
|

my attempt to init an array with a number of bool values using:

[myArray initWithObjects:[NSNumber numberWithBool:YES], 
                         [NSNumber numberWithBool:YES], 
                         [NSNumber numberWithBool:YES],
                         nil];

seems to fail since the debugger shows an empty array after this statement is carried out ... Any clues?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone