核心动画-页面翻转 [英] Core Animation - Page flip

查看:88
本文介绍了核心动画-页面翻转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想完全像Flipboard应用一样弯曲"视图.我成功地翻转了整个视图,但没有弯曲.我的策略是:从要弯曲的视图的一半制作一个视图/图层,将其添加到视图中并翻转该新视图.因此:如何在一个视图/图层中仅绘制另一个视图的一半?

I would like to 'bend' a view exactly like Flipboard app. I succeeded to flip an entire view, but not to bend it. My strategy is this: make a view/layer from half of the view I want to bend, add this to the view and flip this new view. So: how do I draw in a view/layer just half of another view?

推荐答案

嘿,我最近使用了对我来说很好的这段代码!您可以从页面的中心折叠获得类似页面动画的翻页板.它的概念很简单,易于使用.您只需在项目"AFKPageFliper"中添加一个类,即.h .m文件.

Hey I recently used this code which works fine for me !!! You can get a flipboard like page animation with fold from center. It's concept is simple and it's easy to use. Just one class i.e .h .m file need to add in your project "AFKPageFliper".

https://github.com/mtabini/AFKPageFlipper

也希望对您有帮助!!

Hope this help for you too !!

这篇关于核心动画-页面翻转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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