ios,未调用表视图 cellForRowAtIndexPath

ios, tableview cellForRowAtIndexPath not called

  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) 

正在调用并返回非零值。

但是没有调用以下代码.. 为什么?

 func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell

tableView 最初是 0 大小,应该是动态增长的,会不会是这个原因?

如果 tableView 的大小为零,将不会调用 cellForRowAtIndexPath!
并且您不能在该方法中保留任何逻辑部分。您只能将该方法用于更新 ui,不能再使用了。