ios - 当单元格当前滑开时按下 UITableViewCell

标签 ios uitableview

我在我的应用程序中使用 MGSwipeTableCell。当一个单元格被滑动打开以显示按钮时,如果我点击另一个单元格,它会关闭滑动单元格(再次隐藏按钮)。我希望之前刷过的单元格关闭按钮,然后一次点击而不是两次选择新单元格(即点击关闭然后点击新单元格)。有什么办法可以做到这一点?

最佳答案

请看下面的描述,我认为 MGSwipeTableCell 的委托(delegate)函数可能对您有所帮助。

-(void) swipeTableCell:(MGSwipeTableCell*) cell didChangeSwipeState:(MGSwipeState) state gestureIsActive:(BOOL) gestureIsActive
{
/**
 * Called when the user clicks a swipe button or when a expandable button is automatically triggered
 * @return YES to autohide the current swipe buttons
 **/
}

关于ios - 当单元格当前滑开时按下 UITableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28045175/

相关文章:

ios - 我应该在哪里保存文件

iphone - 如何将多个数据插入到 UITableView 的单个单元格中

ios - UITableView 返回奇怪的大小

ios - 以编程方式填充 UITableViewCells - Swift

ios - 如何将 TableView Controller 添加到现有 Storyboard View Controller ?

ios - 自定义 UITableViewCell : Value of type 'UITableViewCell' has no member 'pointsNumber'

iphone - Storyboard与在代码中做

ios - iPhone 5 iOS Webapp 不是全屏(不是宽度=设备宽度)

ios - 如何获得可无延迟拖动的 MKAnnotationView?

ios - 标签栏未出现在 applicationDidBecomeActive 上