Looking for a way to prevent SWTableViewCell from reverting to scrollStateCenter after tapping disabled button?

StackOverflow https://stackoverflow.com/questions/23412640

  •  13-07-2023
  •  | 
  •  

Frage

I am using SWTableCells and in the rightButtonsArray I have two buttons. I am trying to disable the buttons but I would also like to stop the scrollview from jumping back to the center.

I checked the rightButtonHandler and all it does is delegate the buttonIndex. I cannot find where the cell state gets changed back to center after the button is pressed.

Is there a way to prevent the SWTableCells from sliding back after the disable button is pressed?

I tried setting this to return false, however the scrollView gets stuck on the entire cell.

-(BOOL)swipeableTableViewCell:(SWTableViewCell *)cell canSwipeToState:(SWCellState)state;

Edit

Got it for those who would like to know. By disabling the button the tapGestureRecognizer takes over which be default hides the buttons. My workaround is to set aside a group of tags 500 - 600 for me as "disabled tags" and use if or switch statement to handle the rest.

War es hilfreich?

Lösung

Got it for those who would like to know. By disabling the button the tapGestureRecognizer takes over which be default hides the buttons. My workaround is to set aside a group of tags 500 - 600 for me as "disabled tags" and use if or switch statement to handle the rest.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top