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

白色导航栏下面那条横线不能显示吗? #24

Closed
xiafb opened this issue Aug 29, 2018 · 7 comments
Closed

白色导航栏下面那条横线不能显示吗? #24

xiafb opened this issue Aug 29, 2018 · 7 comments

Comments

@xiafb
Copy link

xiafb commented Aug 29, 2018

用颜色设置导航栏为白色的时候,下面那条横线不能设置显示

@xiafb xiafb closed this as completed Aug 29, 2018
@yiplee
Copy link
Owner

yiplee commented Aug 29, 2018

额,怎么关了。

我刚提交了一个 PR : ShadowImage,加了
screen shot 2018-08-29 at 3 02 59 pm

你试试这个分支的代码

pod 'YPNavigationBarTransition', :git => 'https://github.com/yiplee/YPNavigationBarTransition.git', :branch => 'shadowImage'

没问题的话我再发布到 CocoaPods 上面去。

@yiplee
Copy link
Owner

yiplee commented Aug 29, 2018

Configure 里面加上 YPNavigationBarShowShadowImage 即可。

@yiplee yiplee reopened this Aug 29, 2018
@xiafb
Copy link
Author

xiafb commented Aug 29, 2018

颜色设置放在基类里,现在两个不同颜色的控制器跳转的时候,不同颜色有个很明显的闪现,请教下什么原因

@yiplee
Copy link
Owner

yiplee commented Aug 29, 2018

@xiafb 有 demo 可以重现吗?我看看代码。

@xiafb
Copy link
Author

xiafb commented Aug 30, 2018

Demo.zip
做了个简单Demo,能重现一下我项目中的问题

@yiplee
Copy link
Owner

yiplee commented Aug 30, 2018

我看了下,第一次 push base2ViewController 会这样。最简单的解决方式就是给 base2 加上

self.extendedLayoutIncludesOpaqueBars = TRUE;

在 navigation bar 完全不透明的时候,也让 vc.view 铺满整个屏幕。

@yiplee
Copy link
Owner

yiplee commented Aug 30, 2018

我刚更新了下 shadowImage 分支,现在应该不加 extendedLayoutIncludesOpaqueBars 也没这个问题了。

你 Pod 一下这个分支试试吧。

@xiafb xiafb closed this as completed Aug 30, 2018
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