Modify coverflow component ,add backview ?

Posted by hib on Stack Overflow See other posts from Stack Overflow or by hib
Published on 2010-05-11T10:47:16Z Indexed on 2010/05/11 11:14 UTC
Read the original article Hit count: 425

Filed under:
|

Hi all ,

I am developing an iPhone application in which I needs to implement a Coverflow component.

I got a good library from here

It is working nicely .

Now I want to show a different back view with 6 buttons when a user double taps on the image in the coverflow .

For that the tapkulibrary author has implemented a delegate method called

which is :

- (void) coverflowView:(TKCoverflowView*)coverflowView coverAtIndexWasDoubleTapped:(int)index{


    TKCoverView *cover = [coverflowView coverAtIndex:index];



    //if(cover == nil) return;
//  [UIView beginAnimations:nil context:nil];
//  [UIView setAnimationDuration:1];
//  [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:cover cache:YES];
//  [UIView commitAnimations];




*********************MY BACK View *******************************

    UIView *c;


    NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"TestMine" owner:nil options:nil];
    c = [array objectAtIndex:0];


    [cover addSubview:c];

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1.0];
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:cover cache:YES];
    [UIView setAnimationDuration:1.0];
    CGAffineTransform transform = CGAffineTransformMakeScale(1.2, 1.2);
    cover.transform = transform;
    [UIView commitAnimations];


    NSLog(@"Index: %d",index);



}

I am not much aware about the drawing code used in this example my back view is not working perfectly .

So can anyone modify me this method or code to push my back view when double tapping the image and again double tapping shows the real image again .

I need help .

© Stack Overflow or respective owner

Related posts about iphone

Related posts about coverflow