terminatorover/RGCardViewLayout
关于
这是一个复刻 City Guide App 中浏览城市“卡片”交互效果的布局。(该应用在 raywenderlich 的顶级 iOS 应用动画排名中位列第 3)
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文RGCardViewLayout

Watch it in action here This is a layout that clones the interaction of going through cities in the City Guide App. (this app is #3 for the top iOS app animations on the raywenderlich
To use this simply drop it in as a class in the storyboard or nib when you create your collection view. or you can instantiate it in code and give it your collection view(via initWithFrame:collectionViewLayout: or just set the layout propery of the collection View. and you can use your collection View as you always do.
One important this for this layout is that in the datasource protcol to specify the number of cards you must use numberOfSectionsInCollectionView: , and for collectionView:numberOfItemsInSection: you must always return 1.
also note that the itemsize is computed by the layout to be "appropriate" to the size of the collection view itself so setting it won't do anything.
Place the following line into your podfile to use RGCardViewLayout: pod 'RGCardViewLayout','1.0'
探索相关项目
加载中…