TKCoverflowView Class Reference
Inherits from | UIScrollView |
Conforms to | UIScrollViewDelegate |
Declared in | TKCoverflowView.h |
Overview
TKCoverflowView
imitates the coverflow you’d find in the iPod/Music app on the iPhone OS. Coverflow displays TKCoverflowCoverView
objects. This view functions similar to the UITableView
where covers that are off screen aren’t loaded until need. Thus, similar to the tableview, you can dequeue a cover view and hand it back to Coverflow View using the data source.
Tasks
-
leftTransform
The transform applied to covers left of the center cover.
property -
rightTransform
The transform applied to covers right of the center cover.
property -
leftIncrementalDistanceFromCenter
The spacing between cover views
property -
rightIncrementalDistanceFromCenter
The spacing between cover views
property -
spacing
The spacing between cover views
property -
coverSize
Coversize is used to center the cover view in the view. This doesn’t have to be the exact size of the
propertyTKCoverflowView
objects hand through the data source. The default is (224,224). -
coverflowDataSource
The data source must adopt the
propertyTKCoverflowViewDataSource
protocol. The data source is not retained. -
coverflowDelegate
The delegate must adopt the
propertyTKCoverflowViewDelegate
protocol. The delegate is not retained. -
currentCoverIndex
The currently centered cover.
property -
– dequeueReusableCoverView
Returns an usued coverflow view. If there are no reusable views, it will return nil.
-
– coverAtIndex:
Returns the cover object corresponding to that index.
-
– visibleRange
Returns the range covers on screen.
-
– reloadData
Reloads the cover views of the receiver.
-
– visibleCovers
Returns the visible covers on screen.
Properties
coverSize
Coversize is used to center the cover view in the view. This doesn’t have to be the exact size of the TKCoverflowView
objects hand through the data source. The default is (224,224).
@property (nonatomic, assign) CGSize coverSize
Discussion
Coversize is used to center the cover view in the view. This doesn’t have to be the exact size of the TKCoverflowView
objects hand through the data source. The default is (224,224).
Declared In
TKCoverflowView.h
coverflowDataSource
The data source must adopt the TKCoverflowViewDataSource
protocol. The data source is not retained.
@property (nonatomic, assign) id<TKCoverflowViewDataSource> coverflowDataSource
Discussion
The data source must adopt the TKCoverflowViewDataSource
protocol. The data source is not retained.
Declared In
TKCoverflowView.h
coverflowDelegate
The delegate must adopt the TKCoverflowViewDelegate
protocol. The delegate is not retained.
@property (nonatomic, assign) id<TKCoverflowViewDelegate> coverflowDelegate
Discussion
The delegate must adopt the TKCoverflowViewDelegate
protocol. The delegate is not retained.
Declared In
TKCoverflowView.h
currentCoverIndex
The currently centered cover.
@property (nonatomic, assign) NSInteger currentCoverIndex
Discussion
The currently centered cover.
Declared In
TKCoverflowView.h
leftIncrementalDistanceFromCenter
The spacing between cover views
@property (nonatomic, assign) CGFloat leftIncrementalDistanceFromCenter
Discussion
The spacing between cover views
Declared In
TKCoverflowView.h
leftTransform
The transform applied to covers left of the center cover.
@property (nonatomic, assign) CATransform3D leftTransform
Discussion
The transform applied to covers left of the center cover.
Declared In
TKCoverflowView.h
rightIncrementalDistanceFromCenter
The spacing between cover views
@property (nonatomic, assign) CGFloat rightIncrementalDistanceFromCenter
Discussion
The spacing between cover views
Declared In
TKCoverflowView.h
Instance Methods
coverAtIndex:
Returns the cover object corresponding to that index.
- (TKCoverflowCoverView *)coverAtIndex:(NSInteger)index
Parameters
- index
Index of the cover object.
Return Value
The cover object at the index. If the cover is outside the visible range, it will return nil.
Discussion
Returns the cover object corresponding to that index.
Declared In
TKCoverflowView.h
dequeueReusableCoverView
Returns an usued coverflow view. If there are no reusable views, it will return nil.
- (TKCoverflowCoverView *)dequeueReusableCoverView
Discussion
Returns an usued coverflow view. If there are no reusable views, it will return nil.
Declared In
TKCoverflowView.h
reloadData
Reloads the cover views of the receiver.
- (void)reloadData
Discussion
Reloads the cover views of the receiver.
Declared In
TKCoverflowView.h