开发者

presentModalViewController out of screenrage to get custom animation

I need a presentModalViewController animation like UIModalTransitionStyleCoverVertical but from left and right instead from bottom. The only thing to solve that problem is i need to present开发者_StackOverflow社区 the new view with presentModalViewController out of the current view range and call a simple animation. But i can not find a solution to present the new view with presentModalViewController out of the screen range.


That is:

CATransition* transition = [CATransition animation];
transition.type = kCATransitionMoveIn;
transition.subtype = kCATransitionFromLeft;
// parent.view.window.layer is essential!
[parent.view.window.layer addAnimation:transition forKey:nil ];
[parent presentModalViewController:controller animated:NO];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜