Praksha
Praksha

Reputation: 265

How to Customize iCarousel Coverflow like below in iOS?

I have to present a view like this in the picture :

enter image description here

I remember that iCarrousel project can do such things, Could Any one guide me to the right control that provide this animation?

I Tried and Got Something like this

enter image description here

Thanks.

Upvotes: 1

Views: 824

Answers (2)

Nick Lockwood
Nick Lockwood

Reputation: 40995

You need to adjust the tilt of the item views, which can be done using the carousel:valueForOption:withDefault: delegate method, like this:

- (CGFloat)carousel:(iCarousel *)carousel valueForOption:(iCarouselOption)option withDefault:(CGFloat)value
{
    if (option == iCarouselOptionSpacing)
    {
        return value * 1.5;
    }
    else if (option == iCarouselOptionTilt)
    {
        return 0.2;
    }
    return value;
}

The values included are just example. You'll need to tweak the title, and probably also the spacing, to avoid having the items appear to pass through each other.

Upvotes: 1

Duncan C
Duncan C

Reputation: 131398

The iCarousel repo includes several demo projects, one of which includes the option to display all the different types of Carousels it offers. It's been a while since I've used it, but I'm pretty sure one of the options is what you're after.

I suggest going through the demo programs and looking for the carousel type that matches what you want. Then there are a multitude of settings that you can adjust to customize the look of the carousel.

Upvotes: 0

Related Questions