Latest 0.1
Homepage https://github.com/Roylee-ML/RLStickyHeaderFlowLayout
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

Carthage
CocoaPods

Platforms
Language

Introduction

This project is a swift version of the CSStickyHeaderFlowLayout, the original address is https://github.com/jamztang/CSStickyHeaderFlowLayout

It is for UICollectionView to replace UITableView, it can be achieved with the same features as the tableview: sticky section header, and it can be used to complete parallax header effect

How to use it?

Use Carthage

RLStickyHeaderFlowLayout is available on Carthage. Just add the following to your Cartfile:

github "Roylee-ML/RLStickyHeaderFlowLayout"

Use StroyBoard

If you want to use stroyboard for your collectionview. Now RLStickyHeaderFlowLayout.framework does not perfect support stroyboard, because it is always unable to change the custom class of flowlayout in storyboard to RLStickyHeaderFlowLayout. However, there is a way to solve this problem:

  • Create a class subclass of RLStickyHeaderFlowLayout like this:
import UIKit
import RLStickyHeaderFlowLayout

class MyStickyHeaderLayout: RLStickyHeaderFlowLayout {

}

Just subclass from RLStickyHeaderFlowLayout and do nothing in this file. If can not subclass from RLStickyHeaderFlowLayout, subcass from UICollectionViewFlowlayout and change the superclass manually.

  • Custom the class of your flowlayout in the storyboad,select the class MyStickyHeaderLayout created before.

CustomClass

If you can choose your layout class(e.g MyStickyHeaderLayout),and the Module is not none, it’s sucessfull.

Chinese

Chinese: 中文文档→

License

RLStickyHeaderFlowLayout is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "RLStickyHeaderFlowLayout",
    "version": "0.1",
    "summary": "Swift language for CSStickyHeaderFlowLayout",
    "description": "Swift language for CSStickyHeaderFlowLayout, UICollectionView replacement of UITableView. Do even more like Parallax Header, Sticky Section Header",
    "homepage": "https://github.com/Roylee-ML/RLStickyHeaderFlowLayout",
    "license": "MIT",
    "authors": {
        "Roylee-ML": "roylee.s[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Roylee-ML/RLStickyHeaderFlowLayout.git",
        "tag": "0.1"
    },
    "source_files": "RLStickyHeaderFlowLayout/RLStickyHeaderFlowLayout/*.swift",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This