NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
A non-mutable collection view model that complies to the UICollectionViewDataSource protocol.
This model allows you to easily create a data source for a UICollectionView without having to implement the UICollectionViewDataSource methods in your controller.
This base class is non-mutable, much like an NSArray. You must initialize this model with the contents when you create it.
This model simply manages the data relationship with your collection view. It is up to you to implement the collection view's layout object.
Tasks | |
Creating Collection View Cells | |
id< NICollectionViewModelDelegate > | delegate property |
Creating Collection View Models | |
(id) | - initWithDelegate: |
(id) | - initWithListArray:delegate: |
(id) | - initWithSectionedArray:delegate: |
Accessing Objects | |
(id) | - objectAtIndexPath: |
(NSIndexPath *) | - indexPathForObject: |
A delegate used to fetch collection view cells for the data source.
Initializes a newly allocated static model with the given delegate and empty contents.
This method can be used to create an empty model.
Initializes a newly allocated static model with the contents of a list array.
A list array is a one-dimensional array that defines a flat list of rows. There will be no sectioning of contents in any way.
Initializes a newly allocated static model with the contents of a sectioned array.
A sectioned array is a one-dimensional array that defines a list of sections and each section's contents. Each NSString begins a new section and any other object defines a row for the current section.
Returns the object at the given index path.
If no object exists at the given index path (an invalid index path, for example) then nil will be returned.
Returns the index path of the given object within the model.
If the model does not contain the object then nil will be returned.