It was a beautiful animation when I minimized a window on Mac OS.
The Window was squeeze into the Dock.
I wanted to 开发者_StackOverflow社区know that if there is a animation in iOS can do like that.
Thanks!
The animation is called "suck", and unfortunately it's still private (AFAIK), so you can't use it in apps you want to submit to the App Store.
There is something similar on iOS, but the animation gets its view to upper left corner.
- (void)cancelHelp { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0.5]; [UIView setAnimationTransition:103 forView:self.view cache:NO]; [self.helpView removeFromSuperview]; [UIView commitAnimations]; }
精彩评论