如何在 UITableViewController 中重载 UITableView "reloadData" 方法?



如何在UITableViewController中重载UITableView "reloadData"方法?

。在每个UITableViews

上调用reloadData时,放置一个日志语句来查看/确认

创建UITableView的子类并重写reloadData函数:

@interface MyUITableView : UITableView

- (void)reloadData {
    [super reloadData];
    NSLog("Hello");
}

要使用它,您需要实例化MyUITableView而不是UITableView

最新更新