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

navigationbar 在 hidden 情况下 设置statusbar 颜色为白色 #51

Open
kavinXy opened this issue Mar 3, 2020 · 3 comments
Open

Comments

@kavinXy
Copy link

kavinXy commented Mar 3, 2020

如题,Demo中此种情形无效,可否添加?

@yiplee
Copy link
Owner

yiplee commented Mar 6, 2020

设置 bar style 为 dark 试试

@kavinXy
Copy link
Author

kavinXy commented Mar 9, 2020

YPNavigationBarStyleLight = 0 << 4, // UIbarStyleDefault
YPNavigationBarStyleBlack = 1 << 4, // UIbarStyleBlack
两种均已试过, hidden 情况下 开启blackBarStyle push到下一页面。statusBar 仍为黑色

@alexiscn
Copy link

You may have a try with WXNavigationBar

override var wx_navigationBarBackgroundColor: UIColor? {
    return .clear
}

override var preferredStatusBarStyle: UIStatusBarStyle {
    return .lightContent
}

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

3 participants