上调用reloadData时,放置一个日志语句来查看/确认
如何在UITableViewController中重载UITableView "reloadData"方法?
。在每个UITableViews
创建UITableView的子类并重写reloadData函数:
头
@interface MyUITableView : UITableView
- (void)reloadData {
[super reloadData];
NSLog("Hello");
}
要使用它,您需要实例化MyUITableView
而不是UITableView