【问题标题】:png images does not load with ios 5.1png 图像不使用 ios 5.1 加载
【发布时间】:2013-02-28 08:07:15
【问题描述】:

我的应用程序中的 png 图像 很少,并且我已将其放在 xib 的 UIImageView 中,但问题是图像在 ios 6.0 中加载良好 模拟器,但图像在 ios 5.1 模拟器 中不可见,而我的 Xcode 版本是 4.5 与我在 ipad 3 中的设备相同,它可以正常加载,而 ipad 1 可以看不见图像分辨率的任何问题

【问题讨论】:

  • 请检查名称,您可以发布用于映射图像的代码。
  • 我是直接在xib的UIImageView的Image字段中设置的

标签: ios ipad ios-simulator


【解决方案1】:

确保添加扩展名:

UIImage *image = [UIImage imageNamed:@"image.png"];

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-27
    • 2016-11-09
    • 2015-01-30
    • 1970-01-01
    • 2011-01-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多