How to update reference of button's background images
I want to update my application's button's background images. It is working fine in simulator if I clean build first. But, when I try to load in iPhone, I am getting old images, instead of updated onces.
Tha开发者_开发问答nks.
When you use images in your iPhone app:
- Always clean and clean all targets before building if your images have changed.
- Make sure that the path you provide for the image has the correct case (builds for iphone simulator are case insensitive but not so for iphone device builds).
[For example: if you have an image named Image.png; Code that uses "image.png" will work on the iphone simulator but not the device]
精彩评论