3

我想更改滑动删除按钮的背景颜色以清除颜色。我尝试了以下代码,但无济于事:

UIView* myBackgroundView = [[UIView alloc] initWithFrame:CGRectZero];
myBackgroundView.backgroundColor = [UIColor clearColor];
cell.editingAccessoryView = myBackgroundView;

cell.backgroundView = [[UIView alloc] initWithFrame:CGRectZero];
cell.backgroundView.backgroundColor = [UIColor clearColor]; 

有任何想法吗?

4

0 回答 0