[翻译] TGLStackedViewController

简介:

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

 

附录:

目录
相关文章
JVM学习笔记(一)------基本结构
JVM学习笔记(一)------基本结构
|
Linux
linux运行protoc出现错误 while loading shared libraries: libprotoc.so.19
linux运行protoc出现错误 while loading shared libraries: libprotoc.so.19
229 0
|
机器学习/深度学习 数据采集 人工智能
数据挖掘概述-4|学习笔记
快速学习数据挖掘概述-4
数据挖掘概述-4|学习笔记
|
Shell 数据安全/隐私保护 网络安全
Request获取url信息
在ASP.NET编程中经常需要用Request获取url的有关信息,Request中有多种方法获取url信息 连转再载再测如下:    (一)页面Test.aspx protected void Page_Load(object sender, EventArgs e) {     Response.
772 0
|
8天前
|
云安全 监控 安全
|
13天前
|
机器学习/深度学习 人工智能 自然语言处理
Z-Image:冲击体验上限的下一代图像生成模型
通义实验室推出全新文生图模型Z-Image,以6B参数实现“快、稳、轻、准”突破。Turbo版本仅需8步亚秒级生成,支持16GB显存设备,中英双语理解与文字渲染尤为出色,真实感和美学表现媲美国际顶尖模型,被誉为“最值得关注的开源生图模型之一”。
1460 8
|
7天前
|
人工智能 安全 前端开发
AgentScope Java v1.0 发布,让 Java 开发者轻松构建企业级 Agentic 应用
AgentScope 重磅发布 Java 版本,拥抱企业开发主流技术栈。
486 11