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];
精彩评论