gpt4 book ai didi

ios - 在单元格和水平滚动之间滑动冲突

转载 作者:可可西里 更新时间:2023-11-01 05:50:21 25 4
gpt4 key购买 nike

目前我有一个水平卷轴,里面有几页。其中一些页面的表格包含可滑动的单元格。

The idea is to be able to swipe the cell and when finished this swipe, somehow activate the scroll swipe to move to the next page. Something like this:

enter image description here

但是当我尝试时,它发生冲突并且同时激活了 2 个滚动条。也就是说,当单元格移动并显示按钮时,滚动条也开始移动到另一页。

对于滑动单元格,我使用 SWTableViewCell 因为 native 功能如下所示:

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
}
}

甚至没有激活,他们完全忽略了单元格的滑动,只有滑动滚动被激活。

谢谢,我们将不胜感激。

最佳答案

试试这个

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
return TRUE;
}

关于ios - 在单元格和水平滚动之间滑动冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38442362/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com