Latest 1.0.2
Homepage https://github.com/jozsef-vesza/JVRCollectionViewDataSource
License MIT
Platforms ios 5.0, requires ARC
Dependencies JVRCellConfiguratorDelegate
Authors

JVRCollectionViewDataSource

A basic, reusable and expandable UICollectionViewDataSource class to take the clutter out of your UICollectionView classes. It depends on a cell configurator class that conforms to the JVRCellConfiguratorDelegate protocol. For cell configuration example, please see the GitHub page for the protocol.

Example for usage in a Collection View Controller

#import "JVRCollectionViewDataSource.h"
#import "JVECellConfigurator.h"

@interface MyCollectionViewController ()

@property (nonatomic, strong) JVRCollectionViewDataSource *dataSource;

@end

@implementation MyCollectionViewController

- (void)viewDidLoad {
  [super viewDidLoad];
  self.dataSource = [JVRCollectionViewDataSource 
    dataSourceForCollectionView:self.collectionView 
    withItems:self.viewModel.model 
    usingCellConfigurator:[[MyCellConfigurator alloc] init]];
}

@end

Installation

Source files can be added manually, however the preferred way to add the class to your project is installation through CocoaPods, using the following Podfile

pod 'JVRCollectionViewDataSource'

This will install JVRCollectionViewDataSource and JVRCellConfiguratorDelegate as an additional dependency.

Latest podspec

{
    "name": "JVRCollectionViewDataSource",
    "version": "1.0.2",
    "summary": "A basic, reusable and expandable UICollectionViewDataSource class, to take the clutter out of your UICollectionView classes.",
    "homepage": "https://github.com/jozsef-vesza/JVRCollectionViewDataSource",
    "license": "MIT",
    "authors": {
        "Ju00f3zsef vesza": "[email protected]"
    },
    "social_media_url": "http://twitter.com/j_vesza",
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/jozsef-vesza/JVRCollectionViewDataSource.git",
        "tag": "1.0.2"
    },
    "source_files": "*.{h,m}",
    "public_header_files": "*.h",
    "requires_arc": true,
    "dependencies": {
        "JVRCellConfiguratorDelegate": []
    }
}

Pin It on Pinterest

Share This