else if([self.reuseIdentifier isEqualToString:@"ViewHistoryVC"]){
//另外一种是足迹里的删除按钮
//关注的有取消关注按钮
//删除按钮for (UIView *subView in self.subviews){
for (UIView *subView in self.subviews){
if([subView isKindOfClass:NSClassFromString(@"UITableViewCellDeleteConfirmationView")]) {
CGRect cRect = subView.frame;
cRect.size.height = self.contentView.frame.size.height;
subView.frame = cRect;
UIView *confirmView=(UIView *)[subView.subviews firstObject];
// 改背景颜色
confirmView.backgroundColor=UIColorFromRGB(0xff7800);
UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, confirmView.frame.size.width, confirmView.frame.size.height)];
label1 .backgroundColor =UIColorFromRGB(0xff7800);
label1.text = @"删除";
label1.textColor = [UIColor whiteColor];
label1.textAlignment = NSTextAlignmentCenter;
[confirmView addSubview:label1];
break;
}
}
//另外一种是足迹里的删除按钮
//关注的有取消关注按钮
//删除按钮for (UIView *subView in self.subviews){
for (UIView *subView in self.subviews){
if([subView isKindOfClass:NSClassFromString(@"UITableViewCellDeleteConfirmationView")]) {
CGRect cRect = subView.frame;
cRect.size.height = self.contentView.frame.size.height;
subView.frame = cRect;
UIView *confirmView=(UIView *)[subView.subviews firstObject];
// 改背景颜色
confirmView.backgroundColor=UIColorFromRGB(0xff7800);
UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, confirmView.frame.size.width, confirmView.frame.size.height)];
label1 .backgroundColor =UIColorFromRGB(0xff7800);
label1.text = @"删除";
label1.textColor = [UIColor whiteColor];
label1.textAlignment = NSTextAlignmentCenter;
[confirmView addSubview:label1];
break;
}
}