cellForRowAtIndexPath不被执行的原因

拿来一段别人的代码,结果tableView总是不执行cellForRowAtIndexPath这个方法
跟踪发现原因如下:tableView的另一个方法结果返回不正确:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
修正该方法的返回值,即可。
原文地址:https://www.cnblogs.com/iloveWater/p/2395509.html