Ios 如何在MGSwippeTableCell Swift中禁用滑动垂直滚动

Ios 如何在MGSwippeTableCell Swift中禁用滑动垂直滚动,ios,swift,iphone,Ios,Swift,Iphone,创建表格时,我希望禁用滑动垂直滚动(不显示MGSwipeButton),但我也希望在单击按钮时激活此置换。使用以下代理方法 /** * Delegate method to enable/disable swipe gestures * @return YES if swipe is allowed **/ -(BOOL) swipeTableCell:(MGSwipeTableCell*) cell canSwipe:(MGSwipeDirection) direction; /**

创建表格时,我希望禁用滑动垂直滚动(不显示MGSwipeButton),但我也希望在单击按钮时激活此置换。

使用以下代理方法

/**
 * Delegate method to enable/disable swipe gestures
 * @return YES if swipe is allowed
 **/
-(BOOL) swipeTableCell:(MGSwipeTableCell*) cell canSwipe:(MGSwipeDirection) direction;
/**
 * Delegate method invoked when the current swipe state changes
 @param state the current Swipe State
 @param gestureIsActive YES if the user swipe gesture is active. No if the uses has already ended the gesture
 **/
-(void) swipeTableCell:(MGSwipeTableCell*) cell didChangeSwipeState:(MGSwipeState) state gestureIsActive:(BOOL) gestureIsActive;