Tuesday, April 8, 2014

How do I Update an Image File?

To update an image file in Xcode, follow these steps;
- Delete existing image and select Move to Trash
- Drag and drop new image file into the correct project folder
- Select Product > Clean build from menu
- Click on Run app triangle in upper left of Xcode to verify

1 comment:

  1. If you're using an image catalog (.xcassets), you can select the old image in the catalog, then drag'n'drop the new images (1x and 2x) into the corresponding boxes of the catalog editor. (I.e. not just into the list of images, but into the actual boxes on the right.)

    (And you _are_ using an image catalog based on the screenshot in the previous post.)

    Also, ideally, cleaning should not be required; I always give it a shot without cleaning first, and it works fairy often. Not sure what that depends on.

    ReplyDelete