- (void)willTransitionToState:(UITableViewCellStateMask)state
{
[super willTransitionToState:state];
if ((state & UITableViewCellStateShowingDeleteConfirmationMask) == UITableViewCellStateShowingDeleteConfirmationMask)
{
UIView *renameView = [[UIView alloc] initWithFrame:CGRectMake(100, 4, 100, 32)];
renameView.backgroundColor = [UIColor grayColor];
renameView.tag = 'c';
for (UIView *subView in self.subviews)//修改编辑状态下Delete按钮的alpha的值
{
if ([NSStringFromClass([subView class]) isEqualToString:@"UITableViewCellDeleteConfirmationControl"])
{
subView.alpha = 0.3;
}
}
}