开发者

Add UIImage Overlay to a UITableViewCell's imageView.image

开发者 https://www.devze.com 2023-02-24 17:25 出处:网络
I have a mainly transparent image which I would like to add as an overlay to a UITableViewCell\'s imageView.image.开发者_C百科

I have a mainly transparent image which I would like to add as an overlay to a UITableViewCell's imageView.image.

开发者_C百科

However I don't know how to do this. Do I need to merge the images? Or can I just add one on top of the other?

If you could provide code on this matter, that would be great!


I managed to work it out:

[cell insertSubview:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ListViewAlbumOverlay.png"]] belowSubview:cell.imageView];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号