It is not possible to create an array that you make at compile time. This is because it is not a “compile-time constant”. Instead, you can do something like:
static NSArray *tArray = nil;
-(void)viewDidLoad {
[super viewDidLoad];
tArray = [NSArray arrayWithObjects:@"A", @"B", @"C", nil];
}
, , , , ( ), , , NSKeyedArchiver ( ), . NSKeyedUnarchiver . , . , , , .