[未通过ios13在iPhone xs上显示图像

问题描述 投票:0回答:1
[mainVwCell.title setImage:[UIImage imageNamed:@"icon.png"]];

我可以从情节提要中看到图像集,但看不到代码中的图像集。我使用的图像是icon@2x~iphone.png和icon@3x~iphone.png。我可以从以前的版本12中看到该图像,而从13中看不到。

ios uiimage ios13
1个回答
0
投票

与我有同样的问题,我尝试以编程方式进行设置,但没有用。我是这样做的 bgAcess.image = UIImage(named: "bg_login") bgAcess.contentMode = .scaleToFill

© www.soinside.com 2019 - 2024. All rights reserved.