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程序。

Usage

Via CocoaPods: 用CocoaPods安装

  • Add pod 'TGLStackedViewController', '~> 1.0' to your project's Podfile

Or the "classic" way: 或者将文件夹拖入到你的工程当中

  • Add files in folder TGLStackedViewController to your project

Then in your project: 然后在你的工程中

  • Create a derived class from TGLStackedViewController and overwrite method -moveItemAtIndexPath:toIndexPath: 继承并重写一个方法
  • Implement UICollectionDataSource (currently only 1 section supported) and UICollectionViewDelegateprotocols 实现两个协议
  • Place UICollectionViewController in your storyboard and set its class to your derived class 在storyboard中进行一些设置

Requirements

  • ARC
  • iOS >= 6.0
  • Xcode 5

附录:

最新文章

  1. 解读sencha touch移动框架的核心架构(一)
  2. 08章 分组查询、子查询、原生SQL
  3. 打开mmc后添加单元,出现停止工作的解决方法
  4. [wikioi 1034][CTSC 1999]家园(网络流)
  5. jquery实现input输入框实时输入触发事件代码
  6. html5在手机端关于 map area中的自适应
  7. Markdown简单语法总结
  8. Stanford CoreNLP--Split Sentence
  9. Quartz Enterprise Job Scheduler 1.x Tutorial---转载
  10. 执行npm安装模块的命令 Cannot find module
  11. 如何重启MySQL服务,正确重启mysql
  12. 记NOIP分数出来前
  13. Nginx小技巧(一)隐藏版本号
  14. hdu 4771 Stealing Harry Potter's Precious
  15. 百度地图API的自动定位和搜索功能(移动端)
  16. 使用Wisdom RESTClient如何在Linux和Mac上获取测试报告和API文档?
  17. postman学习笔记(二)
  18. eclipse导出可执行jar包步骤
  19. FortiGate 硬件加速
  20. HDU 6060 RXD and dividing(思维+计算贡献值)

热门文章

  1. CentOS7安装SaltStack的踩坑经历
  2. Spring 的监听事件 ApplicationListener 和 ApplicationEvent 用法
  3. jenkins自动化部署
  4. textarea的placeholder属性内容折行显示(PC和移动端端)
  5. SQLAlchemy之SQL Expression
  6. 阿里云centos6.5实践编译安装LNMP架构web环境
  7. springboots 配置文件
  8. [转]ASP.NET Core配置环境变量和启动设置
  9. elasticsearch环境搭建
  10. css3 transform(变形)笔记