///iOS 18 切换Tab页面闪烁问题解决 实现下面两个代理方法
///iOS 18 切换Tab页面闪烁问题解决 实现下面两个代理方法
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController{
[UIView setAnimationsEnabled:false];
return true;
}
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController{
[UIView setAnimationsEnabled:true];
}