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

Bugfix: Breaking Navigation Bar Tint Color #3

Merged
merged 1 commit into from
Feb 13, 2016
Merged

Conversation

gitusp
Copy link
Contributor

@gitusp gitusp commented Apr 27, 2015

The process restoring alpha values breaks tint color of a navigation bar.
Tint color of a navigation bar is a sort of this:

UINavigationBar.appearance().tintColor = UIColor.redColor()

I got disappearance of button title and view title when I canceled back button.

b967f3e0-ed36-11e4-89f0-b40635742f3e

iPhone 5S; iOS 8.3


Ignoring zero alpha elements fix the problem.

f85f546a-ed38-11e4-8923-d2bfc89aec66

Thanks.

@pronebird
Copy link

Why not to target chevron directly? Worst case scenario they change the class name for chevron, but it has been there for years.

for(UIView *subview in navigationBar.subviews)
{
    if([subview.description hasPrefix:@"<_UINavigationBarBackIndicatorView"]) {
        [UIView animateWithDuration:0.25 animations:^{
            subview.alpha = 1;
        }];
    }
}

onegray added a commit that referenced this pull request Feb 13, 2016
Bugfix: Breaking Navigation Bar Tint Color
@onegray onegray merged commit 834617d into onegray:master Feb 13, 2016
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

Successfully merging this pull request may close these issues.

3 participants