こんにちは私はを私のUITableview
に使って私の細胞をスワイプします。スワイプが効いています。そして、私は私のCellforRowAtIndex
iOSのMGSwipeButtonのターゲットを設定する方法
//configure left buttons
cell.leftButtons = @[[MGSwipeButton buttonWithTitle:@"Approve" icon:[UIImage imageNamed:@"approveTick"] backgroundColor:[UIColor colorWithRed:43.0/255 green:178.0/255 blue:157.0/255 alpha:1.0]]
];
cell.leftSwipeSettings.transition = MGSwipeTransition3D;
//configure right button
[email protected][[MGSwipeButton buttonWithTitle:@"Reject" icon:[UIImage imageNamed:@"rejectDel"] backgroundColor:[UIColor colorWithRed:243.0/255 green:104.0/255 blue:97.0/255 alpha:1.0]]
];
cell.rightSwipeSettings.transition=MGSwipeTransition3D;
以下のようにこれらの行を追加している今、私はこれらの2つのボタンのターゲットクリックイベントを設定したいです。しかし、私はこれを行う方法を正しく理解していません。これで私を助けてください。また、あなたは、オプションのMGSwipeTableCellDelegateを実装する場合、またはすることができ、ボタンのクリックイベントをリッスンするためには「MGSwipeTableCellDelegate」
あなたは私の答えを以下で確認しましたか? – a4arpan