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

navigation 设置 hidden 隐藏,导航底部线条再也无法恢复 #57

Open
qinhongke opened this issue Aug 31, 2020 · 6 comments
Open

Comments

@qinhongke
Copy link

No description provided.

@yiplee
Copy link
Owner

yiplee commented Sep 1, 2020

能给个能复现问题的 demo 吗?

@qinhongke
Copy link
Author

错了,是设置颜色后导航底部线条无法出现,也就是设置颜色或图片,YPNavigationBarShowShadowImage是失效的,你的Demo也是

@qinhongke
Copy link
Author

A界面设置 YPNavigationBarBackgroundStyleColor | YPNavigationBarBackgroundStyleOpaque,目的是为了隐藏底部线条,B界面设置 YPNavigationBarBackgroundStyleColor | YPNavigationBarBackgroundStyleOpaque | YPNavigationBarShowShadowImag, 目的是为了显示底部线条,当A Push 到 B时,底部线条一闪而过,显示不出来

@strangeliu
Copy link

运行demo,关掉black bar style,打开shadow image,点white打开下一个页面,shadow image显示一下就消失了

@zcsoft
Copy link

zcsoft commented Dec 2, 2020

UINavigationBar+YPConfigure.m,66行,注释掉即可实现显示横线;
//self.shadowImage = configure.shadowImage ? nil : transpanrentImage;

这里给self.shadowImage赋值会导致横线消失。

@sjsurf
Copy link

sjsurf commented Jul 29, 2021

UINavigationBar+YPConfigure.m,66行,注释掉即可实现显示横线;
//self.shadowImage = configure.shadowImage ? nil : transpanrentImage;

这里给self.shadowImage赋值会导致横线消失。

但是如果没有这行代码的话,其他状态下的shadowImage就会有问题了

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

5 participants