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

_UINavigationBarBackIndicatorView 造成自定义的返回按钮与默认返回按钮同时显示 #57

Open
NoPPT opened this issue Jan 11, 2017 · 1 comment

Comments

@NoPPT
Copy link

NoPPT commented Jan 11, 2017

if ([obj isKindOfClass:NSClassFromString(@"_UINavigationBarBackIndicatorView")]) {
 -            obj.alpha = obj.alpha == 0 ? 0 : alpha;
 +            obj.alpha = alpha;
}

更新到新版本后,如果调用lt_setElementsAlpha方法会导致系统的返回按钮显示出来

07b55868-716d-4647-af53-67897b13f401

@XiFengLang
Copy link

NSArray * leftViews = [self valueForKey:@"_leftViews"];
if (leftViews.count) {
backIndicator.alpha = alpha;
} else {
backIndicator.alpha = 0;
}

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