-
(void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath {
if (@available(iOS 11.0, *)) {
for (UIView *swipeActionPullView in self.tableView.subviews) { if([swipeActionPullView isKindOfClass:NSClassFromString(@"UISwipeActionPullView")]){ for (UIView *swipeActionStandardButton in swipeActionPullView.subviews) { if ([swipeActionStandardButton isKindOfClass:NSClassFromString(@"UISwipeActionStandardButton")]) { for (UIImageView *imageView in swipeActionStandardButton.subviews) { if ([imageView isKindOfClass:[UIImageView class]]) { if ([imageView viewWithTag:k_ash_action_img]==nil) { UIImageView *addedImageView = [[UIImageView alloc] initWithFrame:imageView.bounds]; addedImageView.tag = k_ash_action_img; addedImageView.image= [imageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; [imageView addSubview:addedImageView]; } break; } } } } } }
}
}
网友评论