iphone - pdf列表的封面流动效果
<p><p>我想知道我们如何为 pdf 列表实现封面流动效果,双击时,它应该打开相应的 pdf。我真的很纠结,请帮帮我</p>
<p>提前致谢</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>在 openFlowView.m 文件中搜索这个方法</p>
<pre><code>- (void)awakeFromNib {
;
}
Now when you find this replace this method by below or add lines of tapGestureRecognizer.
- (void)awakeFromNib {
;
UITapGestureRecognizer *tapRecognizer = [ initWithTarget:self action:@selector(screenTapped:)];
;
;
;
}
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){
;//either write code or made seperate method that should gets called when you do double tap.
}
}
</code></pre>
<p>希望此代码可以节省您的几个小时。快乐编码。</p></p>
<p style="font-size: 20px;">关于iphone - pdf列表的封面流动效果,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/7185711/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/7185711/
</a>
</p>
页:
[1]