I have tried to initialize my NSMutableArray 100 ways from Sunday, and NOTHING is working for me. I tried setting it equal to a newly allocated and initialized NSMutableArra
I had similar error saying : unrecognized selector sent to instance for NSMutable array.. After going through a lot of things, I figured out that I was using my mutable array as a property as
@property (assign, nonatomic) NSMutableArray *myMutableArray;
while copy pasting and not paying attention and it was causing the problem.
The solution us that I changed it to strong type(you can change it to any other type like strong/weak,etc.. depending your requirement). So solution in my case was :
@property (strong, nonatomic) NSMutableArray *myMutableArray;
So, be careful while copy pasting! Do check once.