Why numberOfSectionsInTableView is called twice in UITableViewController?

前端 未结 2 740
渐次进展
渐次进展 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:48

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

提交回复
热议问题