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

导航栏没有隐藏 #20

Open
yimao009 opened this issue Nov 21, 2018 · 0 comments
Open

导航栏没有隐藏 #20

yimao009 opened this issue Nov 21, 2018 · 0 comments

Comments

@yimao009
Copy link

UIView *barBackgroundView = [self.navigationBar subviews].firstObject;// _UIBarBackground

iOS12 xr机型, 现在的导航栏下边有俩个imageview, 设置父视图barBackgroundView的alpha为0; 还是会显示一条白色, backgroundImageView这个view的alpha还是1
现在我这么做
backgroundImageView.hidden = alpha == 0?YES:NO;
解决的效果

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

1 participant