値を変更する必要がある NSMutableArray がありますが、次のエラーが発生します:
[__NSArrayI replaceObjectAtIndex:withObject:]: unrecognized selector sent to instance 0x5291db0
これは私の NSMutableArray の宣言です:
NSMutableArray *selectedOptions = [NSArray arrayWithObjects:[NSNumber numberWithInteger:0], nil];
次に、次のように replaceObjectAtIndex メソッドを使用しています。
[self.selectedOptions replaceObjectAtIndex:0 withObject:[NSNumber numberWithInteger:1]];
しかし、そのエラーが発生し、NSMutableArray を使用しています。
ありがとう