Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想像 Flipboard 应用一样“弯曲”一个视图。我成功地翻转了整个视图,但没有弯曲它。我的策略是这样的:从我想要弯曲的视图的一半创建一个视图/图层,将其添加到视图并翻转这个新视图。那么:我如何在一个视图/图层中绘制另一个视图的一半?
嘿,我最近使用了这段代码,对我来说很好用!!!你可以得到一个像翻板一样的页面动画,从中心折叠。它的概念很简单,而且很容易使用。只需在您的项目“AFKPageFliper”中添加一个类,即.h .m 文件。
https://github.com/mtabini/AFKPageFlipper
希望这对你也有帮助!