Search code examples
iosimageuiimageviewstoryboardxcasset

Load image NOT from .xcassets folder?


I have a localized app for iOS. I localized my images and set them to views from code. I removed localized images from .xcassets and now that images are in some folder 'localized_images'. But now some views in storyboard were left empty. How can I set an image for imageview in storyboard not from .xcasset folder but from my folder 'localized_images'


Solution

  • Just type the name of the image with its extension(exampleImage.png) in the attribute inspector

    Also if you want 1x 2x 3x images you have to create Asset catalog

    enter image description here