TKCoverflowViewDataSource Protocol Reference
Conforms to | NSObject |
Declared in | TKCoverflowView.h |
Overview
The data source of a TKCoverflowView
object must adopt the TKCoverflowViewDataSource
protocol.
Tasks
-
– numberOfCoversInCoverflowView:
Returns the number of covers to display in the view.
required method -
– coverflowView:coverForIndex:
Returns a coverflow cover view to place at the cover index.
required method
Instance Methods
coverflowView:coverForIndex:
Returns a coverflow cover view to place at the cover index.
- (TKCoverflowCoverView *)coverflowView:(TKCoverflowView *)coverflowView coverForIndex:(NSInteger)index
Parameters
- coverflowView
The coverflow view.
- index
The index for the coverflow cover.
Return Value
A TKCoverflowCoverView
view that is either newly created or from the coverflow’s reusable queue.
Discussion
Returns a coverflow cover view to place at the cover index.
Declared In
TKCoverflowView.h
numberOfCoversInCoverflowView:
Returns the number of covers to display in the view.
- (NSInteger)numberOfCoversInCoverflowView:(TKCoverflowView *)coverflowView
Parameters
- coverflowView
The coverflow view.
Return Value
The number of covers displayed in the coverflow view.
Discussion
Returns the number of covers to display in the view.
Declared In
TKCoverflowView.h