开发者

UIImageView not reflecting changed images

开发者 https://www.devze.com 2023-01-10 05:43 出处:网络
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

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

精彩评论

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