Reputation:
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 step.Here is link for of sample code for correction.https://drive.google.com/file/d/0B5pNDpbvZ8SncGFuaDd0dkpUOE0/view?usp=sharing
Upvotes: 1
Views: 704
Reputation: 6067
Go to Target -> Build Phases -> Copy Bundle Resources -> Add login.jpg and home.jpg
Upvotes: 0
Reputation: 1207
Go to Target -> Build Phases -> Copy Bundle Resources -> Add login.jpg to the list.
This will display the image on view.
Hope this helps :)
Upvotes: 2