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.
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.
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
}
}
}