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
(void)setNavigationBarHidden:(BOOL)navigationBarHidden { [self setNavigationBarHidden:navigationBarHidden animated:NO]; }
(void)setNavigationBarHidden:(BOOL)navigationBarHidden animated:(BOOL)animated { _navigationBarHidden = navigationBarHidden; _navigationBar.alpha = navigationBarHidden ? 1 : 0;
if (!animated) { [self layoutContainerView]; _navigationBar.hidden = navigationBarHidden; return; }
if (!navigationBarHidden) { _navigationBar.hidden = navigationBarHidden; } [UIView animateWithDuration:0.5 delay:0 usingSpringWithDamping:1 initialSpringVelocity:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{ _navigationBar.alpha = navigationBarHidden ? 0 : 1; [self layoutContainerView]; } completion:^(BOOL finished) { _navigationBar.hidden = navigationBarHidden; }]; } 当animated为NO的话,后面的就不会执行了。 当前界面的导航隐藏了,当弹出pop界面当时候,导航会出来。这是一个bug。 请问如何解决。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
(void)setNavigationBarHidden:(BOOL)navigationBarHidden
{
[self setNavigationBarHidden:navigationBarHidden animated:NO];
}
(void)setNavigationBarHidden:(BOOL)navigationBarHidden animated:(BOOL)animated
{
_navigationBarHidden = navigationBarHidden;
_navigationBar.alpha = navigationBarHidden ? 1 : 0;
if (!animated) {
[self layoutContainerView];
_navigationBar.hidden = navigationBarHidden;
return;
}
if (!navigationBarHidden) {
_navigationBar.hidden = navigationBarHidden;
}
[UIView animateWithDuration:0.5 delay:0 usingSpringWithDamping:1 initialSpringVelocity:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{
_navigationBar.alpha = navigationBarHidden ? 0 : 1;
[self layoutContainerView];
} completion:^(BOOL finished) {
_navigationBar.hidden = navigationBarHidden;
}];
}
当animated为NO的话,后面的就不会执行了。
当前界面的导航隐藏了,当弹出pop界面当时候,导航会出来。这是一个bug。
请问如何解决。
The text was updated successfully, but these errors were encountered: