Is it possible to declare a int array property in app delegate?
int myArray[12];
Is it possible to declare a int array property in app delegate?
int myArray[12];
Objective-C does not support C array properties.
Your best option is to use an NSArray
property instead. If you really need a C array to be accessible from outside, use an int *
property and a size_t count
property for the number of elements.