更改滑动到删除按钮的背景颜色

时间:2012-07-20 19:18:49

标签: ios xcode clear

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

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

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

有什么想法吗?

0 个答案:

没有答案