[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from

遇见下面的错误 的解决办法:::

'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'

应该是在按钮的执行方法中多刷新了表格的问题。。。

//    [self.myTableView reloadData];

并且在没有网络的时候,读取缓存中的数据的时候,的字典 self.dic  必须用可变型的。。。。

并且赋值的时候:self.dic  =  [NSMutableDictionary  dictadd..........];

不能直接 用 一个字典等于另一个字典。。。。。

猜你喜欢

转载自zhangmingwei.iteye.com/blog/1932213