Search code examples
iosobjective-ciphonexcode9-beta

Images not displayed on corresponding xib file


I have created empty application in xcode .Then i created two view controller with xib.Then i placed images background using interface builder login.jpg on loginBIDViewController.xib and home.jpeg on ESBPBIDViewController.xib.I have set the necessary constraints . On running the project .Simulator doesn't displays those images on corresponding xib .I do not understand the reason behind this simple stepenter image description here.Here is link for of sample code for correction.https://drive.google.com/file/d/0B5pNDpbvZ8SncGFuaDd0dkpUOE0/view?usp=sharing


Solution

  • enter image description hereGo to Target -> Build Phases -> Copy Bundle Resources -> Add login.jpg to the list.

    This will display the image on view.

    Hope this helps :)