Element that manages a collection of cells within a UICollection. This element should only be used from within a UICollectionSection otherwise the behaviour is unknown.
Properties
Return the number of cells in the collection
Returns the parent collection
Returns true if the cells container has a layout defined
Set to true to show the loading indicator
Returns the parent section
Returns the selection cell index
Returns the number of selected cells
Methods
Add a single cell to the end
Returns
Add one or more cells to the end
Parameters
count
Returns
Deselect a cell using the cell view
Parameters
cell
Returns
Deselect a cell using the cell index
Parameters
cellIndex
Returns
Deselect all cells in the collection
Returns
Returns
Enumerate all visible cells in the collection. Note that no changes to the cells should be made during a call to enumerate or the results will be unknown.
Parameters
enumerate
Returns
Return the cell for the given visible cell for the index or null if the cell is not visible
Parameters
cellIndex
Returns
Return the index of the given cell within the collection. If the cell is not found a value of -1 will be returned.
Parameters
cell
Returns
Parameters
index
Returns
Insert one or more cells into the collection. If the given index is <0 then add to the end
Parameters
index
count
Returns
Instantiates a new cell within the container and returns the instance. This method may pull cells from the recycle bin if available.
Parameters
cellIndex
Index of the cell within the collection to instantiate
Returns
Returns true if the given cell is selected
Parameters
cell
Returns
Returns true if the given cell index is selected
Parameters
cellIndex
Returns
Parameters
itemIndex
itemPosition
delta
Returns
Returns
Recycle the given cell using the appropriate recycling method.
Parameters
index
cell
Returns
Remove all cells from the collection
Returns
Remove a single cell from the collection
Parameters
index
Index of the cell to remove
Returns
Remove all cells in the given range. Note that this call must be made from within PerformUpdates
Parameters
index
Starting index
count
Number of cells to remove
Returns
Scroll to the cell at the given index
Parameters
cellIndex
additionalOffset
Returns
Select the given cell and deselect all other cells. To add a cell to the selection pass true for the add parameter
Parameters
cell
add
Returns
Select the cell at the given index and deselect all other cells. To add a cell to the selection pass true for the add parameter
Parameters
cellIndex
add
Returns
Returns the cell's index in the selection list if it's selected or -1 if it's not
Parameters
cellIndex
Returns
Parameters
layout
Returns
Parameters
layout
Returns
Toggles the selection state of the cell
Parameters
cell
add
Returns
Toggles the selection state of the cell