iPhone 4 分辨率困难 - @2x 命名技术不适用于按钮图像
我有一个带有通过界面生成器设置的图像的按钮。原始图像为 SearchImage.png,高解析度版本为 [email protected]。我绝对确定没有出现拼写错误,而且较高分辨率的图像确实是较低分辨率图像的两倍大小(即两倍高、两倍宽),但办公室的 iPhone4 仍然只加载低分辨率图像。
有谁知道问题可能是什么?
我已经阅读了所有相关的苹果文档。
谢谢! 特里斯坦
I have a button with an image set through interface builder. The original image is SearchImage.png and the high rez version is [email protected]. I'm absolutely sure that no typos were made, and the higher resolution image is indeed exactly twice the size (ie twice as tall, twice as wide) as the lower resolution image, yet the office's iPhone4 still only loads the low resolution image.
Does anyone have any ideas what the problem might be?
I have read all the relevant Apple documentation.
Thanks!
Tristan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需分配图像属性“SearchImage.png”并包含 SearchImage.png 和 [email protected] ] 在你的主包中,它将加载正确的图像。
请参阅https://devforums.apple.com/message/233916#233916。
Just assign the image property "SearchImage.png" and include both SearchImage.png and [email protected] in your main bundle and it will load the correct image.
See https://devforums.apple.com/message/233916#233916.