push多个页面想返回根页面调用这个popToRootViewControllerAnimated方法时底部tabbar消失了, 系统的_tabBar的kvo监听也监听不到了
在继承系统navgationCongtroller的类里加这个方法
(NSArray<__kindof UIViewController *> *)popToRootViewControllerAnimated:(BOOL)animated{
if (self.viewControllers.count > 1) {
self.topViewController.hidesBottomBarWhenPushed = NO;
}
return [super popToRootViewControllerAnimated:animated];
}
iOS14 tableviewcell 添加控件时调用,[self addSubview: aa];时会出现无法点击,如果cell上添加的是collectionview也是会出现无法横滑和点击
在UITableViewCell和 UICollectionCell通过 [self.contentView addSubview:aa];来进行解决