开发者

horizontal flip animation on modal UIView

how can i present a modal view with an horizontal flip animation (like pushing an view controller o开发者_开发技巧n a navigation controller) ? i tried this but it doesn't work

[UIView beginAnimations:@"animation" context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.view cache:NO]; 
[self presentModalViewController:detailsViewController animated:NO];
[UIView commitAnimations];

thanks !


This is all you need:

detailsViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:detailsViewController animated:YES];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜