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

在 VTMagic 控制器中 修改 navigationBar 的 BarTintColor 无效 #131

Open
qyfeng009 opened this issue Feb 28, 2020 · 1 comment
Open

Comments

@qyfeng009
Copy link

在 push 到 VTMagic 控制器中的 修改 navigationBar 的 BarTintColor 如下

  • (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear: animated];
    [self.navigationController.navigationBar setBarTintColor: [UIColor blueColor]];
    }
    并没有改变
    在 viewDidAppear 中可以改变,但是颜色的切换变得生硬。
    请问这个问题是如何产生的,如何处理,谢谢
@qyfeng009
Copy link
Author

测试发现在 viewWillAppear 中修改是起作用的,只是不知在哪里又被重置回去了

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

1 participant