如何创建页面卷曲动画? [英] How to create a page curl animation?

查看:157
本文介绍了如何创建页面卷曲动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何方式来模仿这样的东西?是不是有用于做半页卷曲之类的东西的API?

Any way to emulate something like this? Isn't there an API for doing something like a "Half page curl" or something?

推荐答案

controller.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:controller animated:YES];

UIModalTransitionStyle
以模态方式呈现视图控制器时可用的过渡样式。以下是四种不同的过渡方式。 UIModalTransitionStylePartialCurl是你所追求的。

UIModalTransitionStyle Transition styles available when presenting view controllers modally. The below are the four different transition styles. The "UIModalTransitionStylePartialCurl" is the one you're after.

typedef enum {
    UIModalTransitionStyleCoverVertical,
    UIModalTransitionStyleFlipHorizontal,
    UIModalTransitionStyleCrossDissolve,
    UIModalTransitionStylePartialCurl,
} UIModalTransitionStyle;

Apple文档:http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html

希望这会有所帮助!

这篇关于如何创建页面卷曲动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆