I wanted to know how can we implement the cover flow effect for the list of pdfs and on double tap ,it should open respective pdf. I m really struck between ,please help me out
thanks in advance
I wanted to know how can we implement the cover flow effect for the list of pdfs and on double tap ,it should open respective pdf. I m really struck between ,please help me out
thanks in advance
In openFlowView.m file search this method
- (void)awakeFromNib {
[self setUpInitialState];
}
Now when you find this replace this method by below or add lines of tapGestureRecognizer.
- (void)awakeFromNib {
[self setUpInitialState];
UITapGestureRecognizer *tapRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(screenTapped:)];
[tapRecognizer setNumberOfTapsRequired:2];
[self addGestureRecognizer:tapRecognizer];
[tapRecognizer release];
}
screenTapped is my method that gets called when I tap twice on cover flow.
- (void)screenTapped:(UITapGestureRecognizer *)tap {
NSLog(@"Screen tapped");
//put your points of your coverflow coordinates
if(coverPointimage.x > 0 && coverPointimage.x <= 265 && coverPointimage.y >0 && coverPointimage.y <= 205){
[self imageClicked];//either write code or made seperate method that should gets called when you do double tap.
}
}
Hope this code will save your couple of hours.Happy Coding.