UITableView单元格中的图像不支持tintColor
问题描述:
我有一个UITableView
,它由静态单元格组成.在IB中,我将每个UITableViewCell
的样式都设置为基本",并设置了图像(请参见屏幕截图).我的导航栏中的按钮支持tintColor
属性,但表视图中的图像不支持.到目前为止,我已经完成了IB的所有工作-如果我也希望图像也使用tintColor
属性,是否必须使用代码?
I have a UITableView
which is comprised of static cells. In IB I've set each UITableViewCell
's style to "Basic" and set an image (see screenshot). The buttons in my nav bar honor the tintColor
property but the images in the tableview do not. Thus far I've done everything in IB - do I have to use code if I want the images to honor the tintColor
property too?
谢谢
答
在iOS7 +上,每个UIImageView
都具有属性tintColor
Every UIImageView
has the property tintColor
on iOS7+
尝试在情节提要User Defined Runtime Attributes