zoukankan      html  css  js  c++  java
  • [翻译] 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

    附录:

  • 相关阅读:
    HDU 5842 Lweb and String 【乱搞】
    POJ 2342 Anniversary party 【树形DP】
    [ZJOI2008]树的统计Count 【树链剖分】
    UVA 136 & POJ1338 Ugly Numbers
    ccf 201803-2
    ccf 201809-5
    ccf 201809-4
    ccf 201809-2
    ccf 201809-1
    最小费用可行流
  • 原文地址:https://www.cnblogs.com/YouXianMing/p/3801749.html
Copyright © 2011-2022 走看看