I have an iCarousel and I want to make the center item larger than others. I saw this question that gives the answer, the only problem is that the are not in line, but in circular way, how can I put the items one after the other like this (iCarouselTypeLinear):
Asked
Active
Viewed 847 times
1 Answers
0
I just modified the code from the above link. Take a look at the CATransform functions.
- (CATransform3D)carousel:(iCarousel *)carousel itemTransformForOffset:(CGFloat)offset baseTransform:(CATransform3D)transform
{
const CGFloat offsetFactor = [self carousel:carousel valueForOption:iCarouselOptionSpacing withDefault:1.0f]*carousel.itemWidth;
transform = CATransform3DTranslate(transform, offset*offsetFactor, 0, 0));
return transform;
}

lead_the_zeppelin
- 2,017
- 13
- 23
-
@YossiTsafar did you set `self.carousel.type = iCarouselTypeCustom;`? – lead_the_zeppelin Jun 05 '15 at 13:40
-
do you have a github project I could look at? – lead_the_zeppelin Jun 07 '15 at 15:36