I'm developing an iOS application with latest SDK.
I want to do this on a .mm
file:
@interface MyClass ()
{
int _cars[16];
...
}
@end
@implementation MyClass
-(id)init
{
self = [super init];
if (self)
{
_cars = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
}
...
}
But I get the following error:
Array type 'int [16]' is not assignable
How can I fix this error?