0
我有一個表視圖,我有NSMutable陣列的tableview的數據源。問題是,如果我在獲取數據重新加載tableview之前嘗試刪除NSMutable數組中的所有對象,那麼它會崩潰。我在viewWillAppear中方法Objective C,TableView error
- (void) viewWillAppear:(BOOL)animated{
[conversations removeAllObjects];//conversation is NSMutalble array
[tableView reloadData];
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
//I am trying to populate NSMutalbe array here on background
[self performSelectorInBackground:@selector(getPosts) withObject:nil];
}
請發佈完整的錯誤信息 – vikingosegundo 2011-03-07 00:53:59
我只是在控制檯上收到「Program received signal:」EXC_BAD_ACCESS「」... – codereviewanskquestions 2011-03-07 00:57:13
檢查此答案:http://stackoverflow.com/questions/2012205/nszombieenabled-does-不行 – vikingosegundo 2011-03-07 01:10:48