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

iOS12 lt_setBackgroundColor can't set navigationBar Color? #80

Open
miniLV opened this issue Oct 19, 2018 · 1 comment
Open

iOS12 lt_setBackgroundColor can't set navigationBar Color? #80

miniLV opened this issue Oct 19, 2018 · 1 comment

Comments

@miniLV
Copy link

miniLV commented Oct 19, 2018

[self.navigationController.navigationBar lt_setBackgroundColor:[color orangeColor]];
in iOS12 will display clearColor

@miniLV
Copy link
Author

miniLV commented Oct 19, 2018

    if (iOS12) {
       //显示正常颜色
        self.navigationController.navigationBar.barTintColor = ACG_ThemeColor;
        //显示透明颜色
        [self.navigationController.navigationBar lt_setBackgroundColor:ACG_ThemeColor];
    }

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