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

Use UIViewAnimationOptionAllowUserInteraction When overlay is disappearing. #48

Closed
jianfeng opened this issue May 2, 2012 · 2 comments

Comments

@jianfeng
Copy link
Contributor

jianfeng commented May 2, 2012

    [UIView animateWithDuration:self.shrinked ? 0. : kAppearAnimationDuration
                          delay:0 
                        options:UIViewAnimationOptionAllowUserInteraction 
                     animations:^{
        [self setHidden:YES useAlpha:YES];
    } completion:^(BOOL finished) {
        // call delegate
        if ([self.delegate respondsToSelector:@selector(statusBarOverlayDidHide)]) {
            [self.delegate statusBarOverlayDidHide];
        }
    }];

Like above.
or it will slag when user interact with someing.

@myell0w
Copy link
Owner

myell0w commented May 6, 2012

Thanks for reporting! Could you send me a quick pull-request fixing this issue?

@jianfeng
Copy link
Contributor Author

jianfeng commented May 6, 2012

@myell0w Sent! :)

@myell0w myell0w closed this as completed May 18, 2012
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