We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If the navigation bar have a back button item it didn't change alpha value and is always displayed in statusbar
The text was updated successfully, but these errors were encountered:
An easy way to solve it and simplify the method:
From: `- (void)lt_setElementsAlpha:(CGFloat)alpha { [[self valueForKey:@"_leftViews"] enumerateObjectsUsingBlock:^(UIView *view, NSUInteger i, BOOL *stop) { view.alpha = alpha; }];
[[self valueForKey:@"_rightViews"] enumerateObjectsUsingBlock:^(UIView *view, NSUInteger i, BOOL *stop) { view.alpha = alpha; }]; UIView *titleView = [self valueForKey:@"_titleView"]; titleView.alpha = alpha;
// when viewController first load, the titleView maybe nil [[self subviews] enumerateObjectsUsingBlock:^(UIView *obj, NSUInteger idx, BOOL *stop) { if ([obj isKindOfClass:NSClassFromString(@"UINavigationItemView")]) { obj.alpha = alpha; *stop = YES; } }]; }`
To: `- (void)lt_setElementsAlpha:(CGFloat)alpha { self.tintColor = [self.tintColor colorWithAlphaComponent:alpha];
UIView *titleView = [self valueForKey:@"_titleView"]; titleView.alpha = alpha;
Sorry, something went wrong.
No branches or pull requests
If the navigation bar have a back button item it didn't change alpha value and is always displayed in statusbar
The text was updated successfully, but these errors were encountered: