SmoothNavDemo
SmoothNavDemo copied to clipboard
导航栏没有隐藏
UIView *barBackgroundView = [self.navigationBar subviews].firstObject;// _UIBarBackground
iOS12 xr机型, 现在的导航栏下边有俩个imageview, 设置父视图barBackgroundView的alpha为0; 还是会显示一条白色, backgroundImageView这个view的alpha还是1 现在我这么做 backgroundImageView.hidden = alpha == 0?YES:NO; 解决的效果