Why numberOfSectionsInTableView is called twice in UITableViewController?

前端 未结 2 742
渐次进展
渐次进展 2021-02-07 20:49

Is there any other reason (than calling \"reloadData\") why numberOfSectionsInTableView is called twice? I did debugging and found, that it\'s get called twice during initial st

相关标签:
2条回答
  • 2021-02-07 21:31

    Probably your tableView object may instantiate twice. Once i have encountered the same problem due to this.

    0 讨论(0)
  • 2021-02-07 21:48

    Have a look at the call stack. you can see that this method is being called from two different scenarios.

    0 讨论(0)
提交回复
热议问题