Using custom UITableViewCell, I'm trying to change the height of tableViewCell's delete button. I've tried all the solutions available here on SO.
Everyone has mentioned that in customTableViewCell class we need to override layoutSubviews method and iterate over self.subViews to find a subView which should be equal to UITableViewCellDeleteConfirmationView or in other iOS versions it is UITableViewCellDeleteConfirmationControl so I have used following code:
- (void)layoutSubviews
{
[super layoutSubviews];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDuration:0.0f];
for (UIView *subView in self.subviews) {
NSLog(@"subview: %@", self.subviews);
if([NSStringFromClass([subView class]) rangeOfString:@"Delete"].location != NSNotFound) {
CGRect newFrame = subView.frame;
newFrame.size.height = 87;
subView.frame = newFrame;
}
}
[UIView commitAnimations];
}
But self.subView only have two views i.e.
- UITableViewCellContentView
- UITableViewCellSeparatorView
How to get tableViewCell's delete button view in iOS 10+?
Edit
Here is my view hierarchy :

