iOS TableView 编辑状态下 使用自定义排序图片
/** 修改编辑状态下排序的image */
- (void)setEditing:(BOOL)editing animated:(BOOL)animated
{
[super setEditing:editing animated:animated];
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:@"customImage"];
}
}
}
}
}
}
网友评论