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

[改进]切换menubar开关动画做成可选项 #35

Open
jzcruiser opened this issue Sep 9, 2016 · 1 comment
Open

[改进]切换menubar开关动画做成可选项 #35

jzcruiser opened this issue Sep 9, 2016 · 1 comment

Comments

@jzcruiser
Copy link

代码是必有动画的:

- (void)updateMenuBarWhenSwitchEnd
{
    _menuBar.needSkipLayout = NO;
    [UIView animateWithDuration:0.25 animations:^{
        [_menuBar updateSelectedItem:YES];
        [self updateMenuBarState];
    }];
}

可以加个选项么?正好遇到这样的需求...

@tianzhuo112
Copy link
Owner

你好,你可以把switchAnimated设为NO试试。

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