initializer not constant?
Posted
by fuzzygoat
on Stack Overflow
See other posts from Stack Overflow
or by fuzzygoat
Published on 2010-05-14T12:30:15Z
Indexed on
2010/05/14
12:34 UTC
Read the original article
Hit count: 312
Quick question if I may: I am just curious about the following (see below) Xcode says "initializer element is not constant" why this does not work, I guess its the NSArray ...
static NSArray *stuffyNames = [NSArray arrayWithObjects:@"Ted",@"Dog",@"Snosa",nil];
and this does ...
static NSString *stuffyNames[3] = {@"Ted",@"Dog",@"Snosa"};
gary
© Stack Overflow or respective owner