Latest 1.0.0
Homepage https://github.com/jacoli/FMCollectionView
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

Collection of items, similar to UITableView and UICollectionView, support various layout style.

Features

  • Similar to UITableView and UICollectionView.

  • Support various layouts.

  • Items reuse.

  • Items prefetch.

  • Section and item spacing custom.

  • Some custom layout (TODO).

Installation

With CocoaPods, add this line to your Podfile.

pod 'FMCollectionView'

and run pod install, then you’re all done!

Or copy *.h *.m files in Sources folder to your project.

How to use

  • Add collection view to container.

eg.

- (void)viewDidLoad {
    [super viewDidLoad];

    self.collectionView = [[FMCollectionView alloc] initWithFrame:self.view.bounds];
    self.collectionView.sectionsSpacing = 20;
    self.collectionView.itemsSpacing = 4;
    self.collectionView.delegatesAndDataSource = self;
    [self.view addSubview:self.collectionView];
}
  • Implement FMCollectionViewDelegatesAndDataSource, only two methods in FMCollectionViewDataSource is required, others is optional.

  • See the examples.

Requirements

  • iOS 7.0+
  • ARC

License

  • MIT

Latest podspec

{
    "name": "FMCollectionView",
    "version": "1.0.0",
    "summary": "Collection of items, similar to UITableView and UICollectionView, support various layout style.",
    "homepage": "https://github.com/jacoli/FMCollectionView",
    "license": "MIT",
    "authors": {
        "jacoli": "[email protected]"
    },
    "source": {
        "git": "https://github.com/jacoli/FMCollectionView.git",
        "tag": "1.0.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "Sources/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This