iTofu/LCTabBarController

iPhone X模拟器 重影问题还存在

Opened this issue · 1 comments

target 是11.1
在何处初始化:
NSURLSessionDataTask *sessionDataTask = [session dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {
//请求完数据后跳转主页
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf turnToMainViewControllerAnimated];
});
}

MyViewController : UIViewController
初始化代码:
MyViewController *vc4 = [[MyViewController alloc]init];
vc4.view.backgroundColor = [UIColor whiteColor];
vc4.title=@"我的";
vc4.tabBarItem.image = [UIImage imageNamed:@"ic_my.png"];
vc4.tabBarItem.selectedImage = [UIImage imageNamed:@"ic_my_pressed.png"];

LCTabBarController *tabBarC = [[LCTabBarController alloc] init];
tabBarC.itemTitleColor=[XiYeUtilities colorWithHexString:@"#666666"];
tabBarC.selectedItemTitleColor=[XiYeUtilities colorWithHexString:@"#01c0dd"];
tabBarC.viewControllers = @[vc1, vc2, vc3, vc4];

[self.navigationController pushViewController:tabBarC animated:YES];

出现问题:
[self.navigationController pushViewController:tabBarC animated:YES]时会有一瞬间出现下重影,之后消失并能正常使用

[self.navigationController pushViewController:tabBarC animated:NO]时,重影出现后不消失,并且第一个子视图总是处于选中状态,各子视图可以正常点击,就是重影不会消失。

AJMainTabBarController *tabBar = [[AJMainTabBarController alloc]init];
[self presentViewController:tabBar animated:YES completion:nil];
使用 present的时候一瞬间也会出现重影 ,环境11.2 , 使用版本1.3.7

另外,在10.3.3 系统中,从上一个界面 pop 到 tabviewcontroller时,tabbar会出现重影,而且重影不消失,当点击下方的tabbaritem时,重影消失