Open aabantariqmurtaza opened 5 years ago
When i change each item size to 200, 200. Then Time Machine effect works correct.
@aabantariqmurtaza this issue is that because the views are so large, the ones in front are obscuring the ones behind. You can correct for this by increasing the horizontal offset using iCarouselOptionTilt
in the following delegate method:
- (CGFloat)carousel:(iCarousel *)carousel valueForOption:(iCarouselOption)option withDefault:(CGFloat)value
{
switch (option)
{
case iCarouselOptionTilt:
{
return 1.0; // try different values between 0 and 1 to get the desired effect
}
default:
{
return value;
}
}
}
I will check, and update here tomorrow. thank you so much for your help. @nicklockwood
Thanks, I got the desired effect
Hi,
My Environment Each 'viewForItemAtIndex' is a view controller's view in my case. I am using Time Machine Style. Each Item have size = 500, 500. I override '(CGFloat)carouselItemWidth:(iCarousel *)carousel' method for width change.
My OutCome size of Items is successfully updated, but Time Machine style effect is destroyed.
Problem Time Machine Effect destroyed. see the snapshots please.
Snapshot In first snapshot, only one item is shown. in Second snapshot, other is also there but why its not appearing in first snapshot like time machine effect.
I will be very thankfull gentleman. please help.