卷页& iPhone开发的转向效果

发布于 2024-10-26 17:49:35 字数 1289 浏览 0 评论 0原文

我正在寻找一种非常简单的翻页效果,类似于 iBooks 中的效果,但更简单。我只需要在用户滑动屏幕时翻页(因此没有困难的“抓取”页面动画等——只是一个动画)。实际上,我需要的只是以下内容,但它不应该是 CurlDown 或 CurlUp,而是从左侧到右侧,反之亦然:

[UIView setAnimationTransition:
         UIViewAnimationTransitionCurlDown
                               forView:self.view cache:YES];

我环顾四周,有几个关于如何做更高级页面的教程轮流:


对于 iOS 5:只需使用 UIPageViewController (参见下面的编辑)

对于 iPad:页面卷曲——看起来很完美&漂亮,但相当先进

对于 iPad:页面卷曲 -- 方向正确,但没那么漂亮

对于 iPhone:花哨的“透明”卷曲(如 iBooks) - 尽管是私有 API(?)

解构经典中的效果:Classics App


我想可能还有更多教程和示例代码,我想知道我们是否可以在这里收集它们并附上一些说明。当然,我特别寻找类似于 UIViewAnimationTransitionCurlDown/Up 的非常简单的翻页效果,只是它是从右到左而不是从下到上。

通过渐变叠加和一些二维动画可以轻松实现简单的翻页效果吗?或者这就是“叶子”项目的意义所在?感谢您对列表的澄清和更新。


编辑:

使用 iOS 5,您现在可以轻松添加 iBooks,例如翻页效果。只需打开一个新项目并选择基于页面的应用程序(您需要运行 xCode 4.2 和 iOS 5)。

I'm looking for a very simple page turn effect, similar to the one in iBooks BUT much simpler. I only need the page to be turned if the user swipes the screen (so no difficult 'grabbing' the page animations etc. -- simply an animation). Actually, all I would need is the following with the exception that it should not CurlDown or CurlUp, but from the left side to the right side and vice versa:

[UIView setAnimationTransition:
         UIViewAnimationTransitionCurlDown
                               forView:self.view cache:YES];

I had a look around an there are several tutorials on how to do more advanced page turns:


For iOS 5: Simply use UIPageViewController (see edit below)

For iPad: Page Curling -- looks perfect & beautiful, but quite advanced

For iPad: Page Curling -- right direction, but not as beautiful

For iPhone: Fancy 'Transparent' Curl (like iBooks) -- private API though (?)

Deconstructing the effect in Classics: Classics App


I guess there may be more tutorials and sample code and I was wondering if we could collect them here with a little description. And of course, I am particularly looking for that very simple page-turn effect similar to UIViewAnimationTransitionCurlDown/Up, only that it goes from right-to-left and not buttom-to-top.

Would it be easy to achieve a simple page turn effect with gradient overlays and a little 2-D animation? Or is this what the 'leaves' project is all about? Thanks for clarifications and updates of the list.


EDIT:

With iOS 5 you can now easily add iBooks like page turn effects. Simply open a new project and choose Page-based Application (you need xCode 4.2 and iOS 5 running).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

注定孤独终老 2024-11-02 17:49:35

我回答了这个问题关于Page Curl效果的状态。

我们开发了一种基于 OpenGL ES 和 CoreGraphics 的过滤器,它看起来非常接近 iBooks 过滤器,并且在 App Store 中是安全的。滤镜已经完成,我们正在开发一个简单易用的 API 来集成效果。

看看这里 http://api.mutado.com/mobile/paperstack/

I put an answer to this question about the status of Page Curl effect.

We worked on a filter based on OpenGL ES and CoreGraphics that looks really close to the iBooks one and it's App Store safe. The filter is finished, we're working on a simple and easy-to-use API to integrate the effects.

Take a look here http://api.mutado.com/mobile/paperstack/

萌︼了一个春 2024-11-02 17:49:35

你可以尝试XBPageCurl项目,它比使用paperstack更成熟并且免费
https://github.com/xissburg/XBPageCurl

you can try XBPageCurl project , its more mature than using paperstack and free
https://github.com/xissburg/XBPageCurl

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文