Skip to content

Instantly share code, notes, and snippets.

@MrBoog
Last active August 29, 2015 13:57
Show Gist options
  • Save MrBoog/9529193 to your computer and use it in GitHub Desktop.
Save MrBoog/9529193 to your computer and use it in GitHub Desktop.
FIX UITableViewCell UITableViewCellEditingStyleDelete issue in iOS7
// override : layoutSubviews
- (void)layoutSubviews
{
[super layoutSubviews];
self.backgroundColor = [UIColor clearColor];
for (UIView *subview in self.subviews) {
self.backgroundView.frame = CGRectMake(0, 0, self.backgroundView.frame.size.width, self.backgroundView.frame.size.height);
for (UIView *subview2 in subview.subviews) {
if ([NSStringFromClass([subview2 class]) isEqualToString:@"UITableViewCellDeleteConfirmationView"]) { // move delete confirmation view
[subview bringSubviewToFront:subview2];
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment