1

I wonder if there is a way how to prevent UITableViewCell shift to left and delete button appears while editing table. I want custom popup appears on pressing red circle. Does anyone knows how to do that?

Thanks in advance.

Nishant Tyagi
  • 9,893
  • 3
  • 40
  • 61
Evgeny S
  • 82
  • 4

1 Answers1

-1

Replace subviews loop in will/didTransitionToState to look like this(if you want to support older iOS versions too, use answers in linked questions). This will find delete button on iOS 7.

    for (UIView *subview in self.subviews) {
        for (UIView *subview2 in subview.subviews) {
            if ([NSStringFromClass([subview2 class]) rangeOfString:@"Delete"].location != NSNotFound) {
                // Do whatever you want here
            }
        }
    }
Timur Kuchkarov
  • 1,155
  • 7
  • 21