iPhone 应用程序替换图像
我遇到了一个小问题。我在我的应用程序中使用了一些图像。今天我想把它们换成新的。但是当我构建并运行该项目时,我仍然得到旧的。我尝试接触该项目和新图像,但似乎没有任何效果。我删除了所有引用和文件并导入了新图像,但我仍然只看到旧图像。 有谁知道如何处理?
I got a little problem. I use some images in my app. Today I wanted to replace them with new ones. But when I build and run the project I still get the old ones. I tried to touch the project and the new images but nothing seems to work. I deleted all references and files and imported the new images, but I still see just the old ones.
Does anyone know how to handle that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
试试这个:构建 ->清洁目标(我认为或类似的东西)
Try this: Build -> Clean Targets (i think or something like this)
尝试清理你的目标并进行全新构建。 Xcode 可能没有正确更新目标中的文件(我已经看到它在复制文件构建阶段经常这样做)。
Try cleaning your target and doing a fresh build. Xcode is probably not updating the files in the target properly (I've seen it do that a lot with the Copy Files build phase).
尝试从模拟器或 iOS 设备中删除该应用程序并重新安装。
Try deleting the app from the simulator or your iOS device and reinstall it.
首先我必须解决这个问题......你确定案例匹配吗?
对于答案:
模拟器:清理所有目标,清理,重置模拟器,然后重试
设备:清理所有目标、清理、删除应用程序、重新安装
First of all I have to get this question out of the way.... did you make sure that the cases match?
For the answer:
Simulator: clean all targets, clean, Reset the simulator and then try again
Device: clean all targets, clean, delete the app, reinstall