Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zzl4321 opened this issue Dec 9, 2017 · 1 comment
Open

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

zzl4321 opened this issue Dec 9, 2017 · 1 comment

Comments

@zzl4321
Copy link

zzl4321 commented Dec 9, 2017

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]时,重影出现后不消失,并且第一个子视图总是处于选中状态,各子视图可以正常点击,就是重影不会消失。

@liupengchao2
Copy link

liupengchao2 commented Jan 11, 2018

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时,重影消失

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants