Rendering mode set to Template for vector pdf in image catalogue, but UIImageView wont tint the image in a custom cell

主宰稳场 提交于 2019-12-05 05:29:17

Template image is work for something like UIButton.image but not UIImageView.image .

You have to set UIImage AlwaysTemplate by yourself.

imageView.image = [[UIImage imageNamed:@"image"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];

And set rendering mode in imageAssets is not working in iOS 7.

For some reason the initWithStyle method was not being called on the custom cells subclass. So I had to write the initialization code in awakeFromNib. The documentation for UITableView's dequeReuseableCell method clearly mentions that initWithStyle will be called even for custom cells, but it wasn't.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!