Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么图片被删除后仍然可以加载到精灵中?
self.sprite = [SKSpriteNode spriteNodeWithImageNamed:@"imageName"];
我想知道代码仍然有效,尽管我将它移到了垃圾箱。
该图像仅从 Xcode 项目中删除。它仍然存在于构建和设备(或模拟器)中。
要解决此问题,您需要从设备/模拟器中删除应用程序,然后在 Xcode 中进行干净的构建。