I'm new to OC.
In Swift, it's really easy to change a value in a two dimensions array.
Just like this a[0][0] = "1"
But I'm really confused now about how to do it in OC.
Thank you for any advice.
self.infos =
[NSMutableArray arrayWithObjects: [NSMutableArray arrayWithObjects:@"11", @"22", @"33", @"44", @"55", @"66", nil],
[NSMutableArray arrayWithObjects:@"aa", nil], nil];
For example. how to set aa to bb?
BTW, is it right way to declare infos in @interface?
@property (strong, nonatomic) NSMutableArray* infos;
infos[1]is aNSArray, not aNSMutableArrayIs they are indeed mutable, then you can doself.infos[1][0] = @"bb". It's missing a*in@property (strong, nonatomic) NSMutableArray *infos;(XCode should throw an error)