SIBGridModeAppearance Protocol Reference
Conforms to | NSObject |
Declared in | SIBGridModeAppearance.h |
Overview
Since SCItemGridBrowser overrides the UICollectionViewDelegate and UICollectionViewDataSource protocols, there should be some way to configure cells appearance.
Override methods of this protocol to forward your values to the UICollectionView and customize its appearance.
Tasks
-
– itemsBrowser:didHighlightCell:forItem:atIndexPath:
Tells the delegate that the item at the specified index path was highlighted. Overloading this method you may do some changes to the cell so that the user gets visual feedback while tapping on it.
-
– itemsBrowser:didUnhighlightCell:forItem:atIndexPath:
Tells the delegate that the item at the specified index path was unhighlighted. Overloading this method you may revert the cell’s appearance to the initial state so that the user gets visual feedback while finishing tapping on it.
-
– itemsBrowser:transitionLayoutForOldLayout:newLayout:
Asks for the custom transition layout to use when moving between the specified layouts.
See [UICollectionView collectionView:transitionLayoutForOldLayout:newLayout:] documentation for details.
Instance Methods
itemsBrowser:didHighlightCell:forItem:atIndexPath:
Tells the delegate that the item at the specified index path was highlighted. Overloading this method you may do some changes to the cell so that the user gets visual feedback while tapping on it.
- (void)itemsBrowser:(SCItemGridBrowser *)sender didHighlightCell:(UICollectionViewCell *)cell forItem:(SCItem *)item atIndexPath:(NSIndexPath *)indexPath
Parameters
- sender
SCItemGridBrowser controller instance.
- cell
A UICollectionViewCell the user interacts with
- item
An item displayed within the given cell
- indexPath
NSIndexPath value for the given cell
Discussion
Note : we recommend overloading the [UICollectionViewCell setHighlighted:] method to add visual effects if you are aiming for the UITableView style highlighting.
Declared In
SIBGridModeAppearance.h
itemsBrowser:didUnhighlightCell:forItem:atIndexPath:
Tells the delegate that the item at the specified index path was unhighlighted. Overloading this method you may revert the cell’s appearance to the initial state so that the user gets visual feedback while finishing tapping on it.
- (void)itemsBrowser:(SCItemGridBrowser *)sender didUnhighlightCell:(UICollectionViewCell *)cell forItem:(SCItem *)item atIndexPath:(NSIndexPath *)indexPath
Parameters
- sender
SCItemGridBrowser controller instance.
- cell
A UICollectionViewCell the user interacts with
- item
An item displayed within the given cell
- indexPath
NSIndexPath value for the given cell
Discussion
Note : we recommend overloading the [UICollectionViewCell setHighlighted:] method to add visual effects if you are aiming for the UITableView style highlighting.
Declared In
SIBGridModeAppearance.h
itemsBrowser:transitionLayoutForOldLayout:newLayout:
Asks for the custom transition layout to use when moving between the specified layouts.
See [UICollectionView collectionView:transitionLayoutForOldLayout:newLayout:] documentation for details.
- (UICollectionViewTransitionLayout *)itemsBrowser:(SCItemGridBrowser *)sender transitionLayoutForOldLayout:(UICollectionViewLayout *)fromLayout newLayout:(UICollectionViewLayout *)toLayout
Parameters
- sender
SCItemGridBrowser controller instance.
- fromLayout
The current layout of the collection view. This is the starting point for the transition.
- toLayout
The new layout for the collection view.
Return Value
The collection view transition layout object to use to perform the transition.
Declared In
SIBGridModeAppearance.h