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 .
OR
Just Give me an idea to show the frontView and backView correctly .
I need help .