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

弹出时 #120

Open
baishitong opened this issue Nov 12, 2018 · 0 comments
Open

弹出时 #120

baishitong opened this issue Nov 12, 2018 · 0 comments

Comments

@baishitong
Copy link

  • (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。
    请问如何解决。
    bf4fe6a9-9105-463d-8e2d-5d2647d3e44e
    13de2af1-d9e8-4dd2-930e-5fbc875d430e

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