[英]UITableviewcell with UIbutton , changes tableview cell background color
I have added custom UITableViewCell
with UIButton
. 我用
UIButton
添加了自定义UITableViewCell
。 On button click I have added popup but whenever I clicked on button then UITableViewCell
background color will changed. 在按钮上单击时,我已经添加了弹出窗口,但是每当我单击按钮时,
UITableViewCell
背景色都会改变。 I don't want to change the color. 我不想改变颜色。 Also add
UITableViewSelectionStyleNone
. 还要添加
UITableViewSelectionStyleNone
。
Set UITableViewCell.SelectionStyle
to .none
if using swift or UITableViewCellSelectionStyleNone
for Objective-C. 如果将
.none
或UITableViewCellSelectionStyleNone
用于Objective-C, .none
UITableViewCell.SelectionStyle
设置为.none
。 Also try 也试试
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.