美文网首页
修改tableview编辑模式下的系统自带的排序图标

修改tableview编辑模式下的系统自带的排序图标

作者: MaZengyi | 来源:发表于2017-01-19 23:35 被阅读100次
- (void)setEditing:(BOOL)editing animated:(BOOL)animated
{
    [super setEditing: editing animated: YES];
    if (editing) {
        for (UIView * view in self.subviews) {
            if ([NSStringFromClass([view class]) rangeOfString: @"Reorder"].location != NSNotFound) {
                for (UIView * subview in view.subviews) {
                    if ([subview isKindOfClass: [UIImageView class]]) {
                        ((UIImageView *)subview).image = [UIImage imageNamed:@"<#imgeName#>"];
                    }
                }
            }
        }
    }
}

相关文章

网友评论

      本文标题:修改tableview编辑模式下的系统自带的排序图标

      本文链接:https://www.haomeiwen.com/subject/cshwbttx.html