gpt4 book ai didi

ios - UIImage imageNamed 返回 nil

转载 作者:行者123 更新时间:2023-11-28 21:56:49 25 4
gpt4 key购买 nike

UIImage imageNamed 在 iphone 6 模拟器的 xcode 6 中返回 nil.. 但在 xcode 5 上完美运行

代码:

UIImage *img=[UIImage imageNamed@"img@2x~ipad"];

最佳答案

尝试

 UIImage *img=[UIImage imageNamed:@"img@2x~ipad.png"];

关于ios - UIImage imageNamed 返回 nil,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26253854/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com