tableView切换频繁崩溃问题

xiaoxiao2021-02-28  135

If that is the case then you will need to override the removeFromParentViewController method of the controller and manually set the tableView property to nil. For example: -(void) removeFromParentViewController { [super removeFromParentViewController]; if(self.tableView!=nil) { self.tableView.delegate = nil; self.tableView.dataSource = nil; self.tableView = nil; } }
转载请注明原文地址: https://www.6miu.com/read-63325.html

最新回复(0)