Skip to content

EMCarousel is an simple and easy-to-use 3D carousel for iOS app.

License

Notifications You must be signed in to change notification settings

emadrazo/EMCarousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EMCarousel

EMCarousel is an simple and easy-to-use 3D carousel for iOS app.

Features

  • animated item selection
  • add items with animation
  • carousel inclination angle support
  • ARC support
  • interface builder support

Installation

  • Drag the EMCarousel/EMCarousel folder into your project.
  • Add the QuartzCore framework to your project.

Usage

(see sample Xcode project)

Create Carousel view :

    carouselView = [[CarouselView alloc] initWithFrame:self.view.frame];
    [carouselView setCarouselInclination:-0.15];    //optional
    [carouselView setBackItemAlpha:0.8];            //optional
    [carouselView shouldCenterSelectedItem:YES];    //optional

Add items to carousel:

    [carouselView addItem:[UIImage imageNamed:@"sample.png"] withTitle:@"ONE"];
    [carouselView addItem:[UIImage imageNamed:@"sample.png"] withTitle:@"TWO"];
    [carouselView addItem:[UIImage imageNamed:@"sample.png"] withTitle:@"THREE"];
    ...

Set delegate and add the view:


[carouselView setSelectionDelegate:self];
[self.view addSubview:carouselView];

Implement Delegate Methods:

-(void)carousel:(CarouselView *)carousel itemSelected:(CarouselItem *)item;

Credits

EMCarousel is brought to you by Eva Madrazo

About

EMCarousel is an simple and easy-to-use 3D carousel for iOS app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published