标签:style class blog code http tar
TGLStackedViewController
A stack layout with gesture-based reordering using UICollectionView -- inspired by Passbook and Reminders apps.
这是一种使用了UICollectionView,基于手势重新排版的抽屉布局,灵感来自于Passbook以及提醒app。
Getting Started
Take a look at sample project TGLStackedViewExample.xcodeproj
.
请查看demo程序。
Via CocoaPods: 用CocoaPods安装
pod ‘TGLStackedViewController‘, ‘~> 1.0‘
to your project‘s Podfile
Or the "classic" way: 或者将文件夹拖入到你的工程当中
TGLStackedViewController
to your projectThen in your project: 然后在你的工程中
TGLStackedViewController
and overwrite method -moveItemAtIndexPath:toIndexPath: 继承并重写一个方法
UICollectionDataSource
(currently only 1 section supported) and UICollectionViewDelegate
protocols 实现两个协议UICollectionViewController
in your storyboard and set its class to your derived class 在storyboard中进行一些设置
附录:
[翻译] TGLStackedViewController,布布扣,bubuko.com
标签:style class blog code http tar
原文地址:http://www.cnblogs.com/YouXianMing/p/3801749.html