如何在UITableViewController中重载UITableView“reloadData”方法?
e.g。在我的每个UITableViews
上调用reloadData时放置一个日志语句来查看/确认答案 0 :(得分:7)
只需继承UITableView并覆盖reloadData函数:
标题
@interface MyUITableView : UITableView
<强>功能强>
- (void)reloadData {
[super reloadData];
NSLog("Hello");
}
要使用它,您可以实例化MyUITableView
而不是UITableView