iPhone/iPad 在 TableViewCell 的 CoverFlow 中仅启用水平和垂直滑动
我有一个表视图,它的每个单元格都包含一个 coverFlow (使用 OpenFlow Lib 实现)。
当我从左向右滑动(或滚动)以选择 coverflow 中的项目时,我必须非常小心,因为如果我不那么水平滑动,则会导致 tableView 滚动(稍微向上或向下)并且 coverFlow代表不会对选择的更改做出反应。
所以我希望视图仅检测左右滑动手势,这将导致更改 coverFlow 的选择,以及向上和向下滑动手势,这将使表格向下滚动!这是我刚才提到的视图的基本概念
有什么想法可以实现这一点吗?
I have a table view and each cell of it contains a coverFlow (implemented using OpenFlow Lib).
When I swipe(or scroll) left to right to select an item in the coverflow, I have to be very careful, because if I swipe not so horizontally, it will result in the tableView being scrolled(slightly up or down) and the coverFlow delegate won't react to the change of selection.
So I want the view only to detect left and right swipe gesture which will result in changing selection of coverFlow, and Up and Down swipe which will make the table to scroll down!Here is a basic concept of the view I just mentioned
Any Ideas how I can achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你应该检查这个文档:
http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizers/GestureRecognizers.html
创建自制事件处理程序并实现 canBePreventedByGestureRecognizer 和 canPreventGestureRecognizer 方法。
you should check this doc :
http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizers/GestureRecognizers.html
Create homemade event handlers and implement the canBePreventedByGestureRecognizer and canPreventGestureRecognizer methods.