SGCoverFlowView


Displays images along with small descriptions in a manner that resembles Apple's cover flow.

Superclass: UIView
Declared In: SGCoverFlowView.h

Discussion

This view recieves its data from addAlbum: . All albums that are added to the view must conform to

To recieves a notificaiton when an album is selected within the view, you must add a delegate that conforms to SGCoverFlowViewDelegate .

The sliderBar is exposed to allow customization. The current bar is set to the default style. The cover flow view will only display 6 albums at a time, applying the proper transformations.



Methods

-addAlbum:

Adds an album to the cover flow view.

-addAlbums:

Adds an array of albums to the cover flow view.

-initWithFrame:maximumAlbums:

Initializes a new cover flow view.

-removeAlbum:

Removes an album from the cover flow view.

-removeAllAlbums

 Removes all albums contained in the cover flow view.


addAlbum:


Adds an album to the cover flow view.

- (void) addAlbum:(id<SGAlbum>)album; 
Parameters
album

The album to add.


addAlbums:


Adds an array of albums to the cover flow view.

- (void) addAlbums:(NSArray*)albums; 
Parameters
albums

The array to add to the view.


initWithFrame:maximumAlbums:


Initializes a new cover flow view.

- (id) initWithFrame:(CGRect)frame maximumAlbums:(NSInteger)albumAmount; 
Parameters
frame

The frame of the view.

albumAmount

The maximum amount of albums to display at one time.

Return Value

The cover flow view.


removeAlbum:


Removes an album from the cover flow view.

- (void) removeAlbum:(id<SGAlbum>)album; 
Parameters
album

The album to remove.


removeAllAlbums


 Removes all albums contained in the cover flow view.

- (void) removeAllAlbums; 

Properties

amountOfViews

The amount of albums the SGCoverFlowView can contain.

closeButton

The close button that is in charge of removing the view.

delegate

The delegate that is notified when a user selects an album.

sliderBar

The slider bar that affects which cover is centered within the view.

subtitleLabel

The label that is located directly under the title label.

titleLabel

The label that is located directly under the cover.


amountOfViews


The amount of albums the SGCoverFlowView can contain.

@property (
    nonatomic,
    assign) NSInteger amountOfViews; 


closeButton


The close button that is in charge of removing the view.

@property (
    nonatomic,
    readonly) UIButton* closeButton; 


delegate


The delegate that is notified when a user selects an album.

@property (
    nonatomic,
    assign) id<SGCoverFlowViewDelegate> delegate; 


sliderBar


The slider bar that affects which cover is centered within the view.

@property (
    nonatomic,
    readonly) UISlider* sliderBar; 


subtitleLabel


The label that is located directly under the title label.

@property (
    nonatomic,
    readonly) UILabel* subtitleLabel; 


titleLabel


The label that is located directly under the cover.

@property (
    nonatomic,
    readonly) UILabel* titleLabel; 

© SimpleGeo Last Updated: 03/31/2010