开发者

UIImageView not reflecting changed images

In my project, I made an animation for my UIImageView using some pngs. I recently swapped those pngs out for different images (with different file names) and removed the previous pngs to the trash. I updated my code to reflect the file name chan开发者_Python百科ge but when I build my application, I still see the animated images that are not referenced in my code anymore, and aren't even on my computer anymore. I tried cleaning the build and deleting/replacing the new images again, but nothing...

I am using XCode 4.


I have had something like this happen. A few things you can check:

  • Check you have added the new image files to your project.
  • Delete the app from your device/simulator and re-build/re-run
  • NSLog the filenames and check your are using the images you think you are.


you should clean all the targets before new images gets reflected.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜