简体   繁体   English

带有UIbutton的UITableviewcell,更改tableview单元格的背景色

[英]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

Screenshot: 屏幕截图: 在此处输入图片说明

Set UITableViewCell.SelectionStyle to .none if using swift or UITableViewCellSelectionStyleNone for Objective-C. 如果将.noneUITableViewCellSelectionStyleNone用于Objective-C, .none UITableViewCell.SelectionStyle设置为.none Also try 也试试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM