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

Dismiss without animation #3

Open
dsdavids opened this issue May 20, 2012 · 0 comments
Open

Dismiss without animation #3

dsdavids opened this issue May 20, 2012 · 0 comments

Comments

@dsdavids
Copy link

small item, but important I think. If you dismiss on applicationDidEnterForeground, the tile menu is visible in the snapshot shown when you return to the application. It shows just briefly then disappears, not nice. I presume the animation delays the dismissal such that it still exists when the image is taken.
I copied and pasted your lines:


// Remove from spawning view.
[self.view removeFromSuperview];
UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, nil);

// Inform delegate.
if (_appeared && _delegate && [_delegate respondsToSelector:@selector(tileMenuDidDismiss:)]) {
    [_delegate tileMenuDidDismiss:self];
}

// Send notification.
[[NSNotificationCenter defaultCenter] postNotificationName:MGTileMenuDidDismissNotification 
                                                    object:self 
                                                  userInfo:nil];

_appeared = NO;

Into a new procedure for dismissWithoutAnimation and confirmed my theory. The tile menu is no longer present in the snapshot on return. I may be missing some other important processes in the dismissal sequence, this was just to see if my assumption was correct.

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