EMCarousel is an simple and easy-to-use 3D carousel for iOS app.
- animated item selection
- add items with animation
- carousel inclination angle support
- ARC support
- interface builder support
- Drag the
EMCarousel/EMCarousel
folder into your project. - Add the QuartzCore framework to your project.
(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;
EMCarousel is brought to you by Eva Madrazo