实现CoverFlow视图 [英] Implementing a CoverFlow View

查看:119
本文介绍了实现CoverFlow视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须创建一个视图,我必须放入图像的CoverFlow。
我怎么克里特呢?
会有带标签的图像可以解释图像。

I have to create a view where I have to put in a CoverFlow of Images. How can I crete it? There would be images with labels that can explain the image.

推荐答案

有很多方法可以做到这一点

There are plenty of ways to do it


  • 如果您的应用程序仅限iOS6 +且不需要支持iOS5,则可以使用 UICollectionView 来实现它。您需要构建一些自定义布局 - 请参阅 WWDC'12会议219 使用Apple ID登录后。您还可以在网上找到大量的教程,只需谷歌搜索 UICollectionView 关键字。

  • 如果您需要支持iOS5或更早版本,或者如果你不想构建自己的自定义 UICollectionViewLayout ,你可以使用一些已经制作的类 - 网上有很多类。其中最着名的是 iCaroussel on github ,这是免费的,兼容的iOS的多个版本(不仅仅是iOS6),并且允许您执行几乎所有类型的caroussel,包括 iCarouselTypeCoverFlow iCarouselTypeCoverFlow2 类型(参见其github上的自述文件)

  • If you application is iOS6+ only and don't need to support iOS5, you can use UICollectionView to implement it. You will need to build some custom layout -- see session 219 of WWDC'12 here after you have logged in using your Apple ID. You can also find plenty of tutorials on the net, simply google for the UICollectionView keyword.
  • If you need to support iOS5 or earlier, or if you don't want to build your own custom UICollectionViewLayout, you can use some of the already made classes -- there are a lot of them around on the net. One of the most famous being iCaroussel on github, which is free, compatible with multiple versions of iOS (not only iOS6), and allows you to do almost every kind of caroussel, including iCarouselTypeCoverFlow and iCarouselTypeCoverFlow2 types (see the README on its github)

这篇关于实现CoverFlow视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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