cellForRowAtIndexPath不执行的原因
1.dataSource和delegate没有设置
2.numberOfRowsInSection和numberOfRowsInSection返回的数据不是大于0的整数
3.tableView没有添加到父视图上(这种情况,第2点种的方法都执行了)
作者:Ashen
链接:http://www.jianshu.com/p/88a735f0152e
來源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
cellForRowAtIndexPath不执行的原因
1.dataSource和delegate没有设置
2.numberOfRowsInSection和numberOfRowsInSection返回的数据不是大于0的整数
3.tableView没有添加到父视图上(这种情况,第2点种的方法都执行了)