Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @property (nonatomic, strong) iCarousel *carousel;
- carousel = [[iCarousel alloc] initWithFrame:CGRectMake(25, 50, self.view.frame.size.width-50, self.view.frame.size.height-75)];
- [self.view addSubview:carousel];
- carousel.delegate = self;
- carousel.dataSource = self;
- self.carousel.type = iCarouselTypeCoverFlow2;
- self.items = [NSMutableArray array];
- for (int i = 0; i < 100; i++)
- {
- [carouselItems addObject:@(i)];
- }
- [carousel reloadData];
- self.carousel = [[iCarousel alloc] initWithFrame:CGRectMake(25, 50, self.view.frame.size.width-50, self.view.frame.size.height-75)];
- self.carousel.delegate = self;
- self.carousel.dataSource = self;
- self.carousel.type = iCarouselTypeCoverFlow2;
- [self.view addSubview:self.carousel];
- self.items = [NSMutableArray array];
- for (int i = 0; i < 100; i++)
- {
- [carouselItems addObject:@(i)];
- }
- [self.carousel reloadData];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement