开发者

horizontal flip animation on modal UIView

开发者 https://www.devze.com 2023-02-13 11:28 出处:网络
how can i present a modal view with an horizontal flip animation (like pushing an view controller o开发者_开发技巧n a navigation controller) ?

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

精彩评论

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