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的背景颜色 #12

Open
ETHANAIR opened this issue Aug 29, 2017 · 1 comment
Open

无法修改NavigationBar的背景颜色 #12

ETHANAIR opened this issue Aug 29, 2017 · 1 comment

Comments

@ETHANAIR
Copy link

mediaView.naviBarBgColor = [UIColor blackColor];

上面的方法设置后没有效果,但是下面两个设置自己颜色的可以

mediaView.naviBarTitleColor = [UIColor whiteColor];
mediaView.barItemTextColor = [UIColor whiteColor];

我猜可能是因为我在工程里通过[UINavigationBar appearance]设置过相关的属性。
看源码我没有找到问题,希望作者可以抽空看一下。

@honeycao
Copy link
Owner

这个容我抽空看下,你可以先试着将 [UINavigationBar appearance] 属性暂时去掉试试

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