最新のSDKを使用してiOSアプリケーションを開発しています。
.mm
これをファイルで実行したい:
@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};
}
...
}
しかし、次のエラーが発生します。
Array type 'int [16]' is not assignable
このエラーを修正するにはどうすればよいですか?