iPhone - Crash using addObject on a NSMutableArray
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem here. Or Maybe I'm really tired... I have a class : @interface THECLASS : UIViewController { NSMutableArray* param; } @property(nonatomic, retain) NSMutableArray* param; Inside that class I have a method that is called when the user clicks on a UISwitch inside a tableViewCell (I build the params into a IBAction method that is not shwon here) : @synthesize param; - (void) changedSelectorValue:(NSIndexPath*)indexPath isOn:(BOOL)isOn { [self.param addObject:@"eeeee"]; } This crashes the app with the following log : 2011-02-04