旧图像在 iOS 应用程序中替换为新图像后显示
我正在处理 X-Code 中这个非常烦人的错误,它似乎将图像保存到某种似乎无法清除的内存类型中。 我替换了一堆正在创建时钟动画的图像,但是当我尝试播放动画时,它显示所有旧图像,我尝试清理应用程序,即使我删除了图像,它们仍然继续显示。然后我尝试更改图像的名称以及调用它们的代码,现在我收到了更多错误,所以如果有人知道如何解决 xcode 缓存图像的问题,我会感到很受伤。 。
I am dealing with this really really annoying bug in X-Code where it seems to save images to some type of memory that seems impossible to clear.
I have replaced a bunch of images in which I am creating a clock animation however when I try to play the animation it showes all the old images, I have tried cleaning the app and still they continue to show even though I have deleted the images.. So then I tried changing the name of the images along with the code where they were getting called and now I'm getting a bunch more errors, So I'm just woundering if anyone knows how to get around this problem of xcode caching images.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要清理构建或将其从设备/模拟器中删除。如果您确定文件命名正确,通常会解决这个问题。还要确保您在文件名中使用了正确的大小写,这让我很困惑。 :)
You need to clean the build or delete it from the device/simulator. That usually takes care of it if you're sure the files are named correctly. Also make sure that you're using the correct case in your filenames, that messed me up a few times. :)