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

升级到4.0.2后 很多界面的导航上移了20. #1249

Open
deanli08 opened this issue Oct 20, 2021 · 13 comments
Open

升级到4.0.2后 很多界面的导航上移了20. #1249

deanli08 opened this issue Oct 20, 2021 · 13 comments

Comments

@deanli08
Copy link

高度变为44了和状态栏重叠了。回到4.0.0就可以了

@Leonard1379
Copy link

我也有这个问题,4.0.2之前的版本在iOS 15上全屏有bug,升级4.0.2后导航栏显示有bug

@qqcc1388
Copy link

同样的使用4.0.2版本导航栏会出现高度问题

@CC10559
Copy link

CC10559 commented Oct 21, 2021

我也有这个问题

@A-Kui
Copy link

A-Kui commented Oct 21, 2021

此问题就是我提到的#1247 ZFPlayerFixSafeArea.m 安全区导致的

@gray2j
Copy link

gray2j commented Oct 21, 2021

我昨天查了大半天,一直以为是自己代码问题,后面才定位到时ZFPlayerFixSafeArea.m 导致的
使用支持core的版本为4.0.1临时解决下
pod 'ZFPlayer/Core', '4.0.1

@yangyuting1991
Copy link

花了一上午时间,才发现坑在这儿。

@rockerkekex
Copy link

请问这个问题该如何解决呢?

@hantianjie
Copy link

4.0.2导航栏显示有bug,有啥临时方案嘛 搞了半天一直没效果呐

@CohenTT
Copy link

CohenTT commented Nov 8, 2021

可以临时解决下:
//先对状态栏操作
[[UIApplication sharedApplication] setStatusBarHidden:NO];
CGRect windowFrame = [UIScreen mainScreen].applicationFrame;
//偏移的原因是退出全屏时,app还没反应过来,还保持的全屏状态(全屏状态下,状态栏是会做调整的),因此我要设备是全屏状态下做处理,这就是这里的判断条件
self.navigationController.navigationBar.frame = CGRectMake(0, k_statusBar_h, windowFrame.size.width, k_navAndStatusBar_h-k_statusBar_h);
self.navigationController.navigationBar.barTintColor = k_color_theme;

@deanli08
Copy link
Author

deanli08 commented Nov 8, 2021

4.0.3目前可以解决,暂时还没有发现问题

@passol1988
Copy link

后悔没看issue,,,,,困扰了我四五天

@MangoJ
Copy link

MangoJ commented Dec 14, 2021

4.0.3已经解决了亲测好用

@bruceFighting
Copy link

怎么解决的,我没用pod,根据需求改了大量代码,有具体的解决方案吗

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