出现问题如下
##错误原因 在写tableview的数据源的这个方法时,
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
本来是要返回一个NSInteger类型的值,手快了敲了一个数组直接返回,结果就报错了
正确修改方法
返回它: return _dataSourceArray.count;
本文共 260 字,大约阅读时间需要 1 分钟。
##错误原因 在写tableview的数据源的这个方法时,
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
本来是要返回一个NSInteger类型的值,手快了敲了一个数组直接返回,结果就报错了
返回它: return _dataSourceArray.count;
转载于:https://my.oschina.net/iOSliuhui/blog/742728