回答

0

這應該工作:

cell.contentView.exclusiveTouch = YES; 
cell.exclusiveTouch = YES; 

您還需要包括此委託功能:

- (BOOL)swipeableTableViewCellShouldHideUtilityButtonsOnSwipe:(SWTableViewCell *)cell 
{ 
    return YES; 
} 

不要忘記設置該單元的代表cellForRowAtIndexPath

cell.delegate = self; 
+0

這不起作用。 –

+0

你可以分享你設置的代碼行嗎?因爲我正在使用我的應用程序。它的工作原理 – Nitish

+0

請檢查我的更新答案。 – Nitish