如何创建卷页动画?
有什么办法可以模拟这样的事情吗?没有一个 API 可以执行“半页卷曲”之类的操作吗?
Any way to emulate something like this? Isn't there an API for doing something like a "Half page curl" or something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
UIModalTransitionStyle
以模态方式呈现视图控制器时可用的过渡样式。以下是四种不同的过渡样式。 “UIModalTransitionStylePartialCurl”就是您想要的。
苹果文档: http://developer.apple.com/library/ ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html
希望这有帮助!
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.
Apple documentations: http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html
Hope this helps!
尝试以下操作。在本例中,Settings 是要在卷页后面呈现的子类 UIViewController。 self 也是一个正在显示的 UIViewController,它的视图将保持在顶部。
请注意,Curl 仅在 iOS 3.2 及更高版本中可用。
Try the following. In this case Settings is a sublcass UIViewController to be presented behind the page curl. self is also a UIViewController that is being displayed an it's view will stay on top.
Notice that the Curl is only available in iOS 3.2 and later.
我想这可能就是您正在寻找的:
I think this may be what you're looking for: