reloadData究竟调用了什么?

She*_*lam 12 iphone cocoa-touch objective-c uitableview

在UITableView上调用reloadData时,实际调用了哪些方法?

[tableView reloadData];
Run Code Online (Sandbox Code Playgroud)

Dan*_*iel 19

重新加载整个表视图,它调用cellForRowAtIndexPath来获取所有行和节的单元格...这样做它还调用tableView数据源的numberOfSections方法和tableview数据源的numberOfRows方法等等.