在TabBar之间快速切换时崩溃。
2019-10-14 本文已影响0人
小鲜肉老腊肉都是肉
在TabBar之间快速切换时(其中一个TabBar上有TableView),app会崩溃。
修复:把TabView请求数据的方法写在-(void)viewDidAppear:(BOOL)animated里面,不要写在-(void)viewWillAppear:(BOOL)animated里面。
我也不知道为什么会崩溃。。。但是这样改之后就不崩了。。。
崩溃信息: Assertion failure in - TableView configure Cell For Display :forIndexPath:], BuildRoot Library Caches com apple xbs Sources UIKit UIKit-3512.60.12 UITableView m 7971