Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Images not all showing up on simulator but shows in storyboard

I am pretty new to iOS development and I was poking around in storyboard in Xcode 4.5.2. I started a new tab bar project (5 tabs) and then dropped in some images (UIImageViews objects) to them, everything looked good and the build came out fine on the simulator but not all the images are showing up. The same image would be showing on the Firstviewcontroller but it won't show on another viewcontroller. And I can't seem to add new image objects into the firstone (meaning i can place it in the storyboard but new ones won't show up on the simulator), It almost seems to be showing cached screens. For example, I just randomly place images all over a viewcontroller and then shifted them around and ran the simulator again but the positions do not match.

Does anyone have any information or experience with this on Storyboard?

Thanks in advance. Ray

like image 895
PressRay Avatar asked Jan 18 '13 15:01

PressRay


3 Answers

I had a similar issue. But later found out that this was because I had put the images in a real folder in the app directory. So there was my project's folder, which contained another folder named 'Assets' which contained the images. This was solved when I moved my images out of the folder and put them in the project's root folder.

like image 161
Vishal Avatar answered Nov 02 '22 16:11

Vishal


In my case when I have created new project in Xcode 6 I can not show the images in the Simulator and as well as in device. I have imported all the images in the image assets making a folder within that.Now I have imported all the images, all are working fine now. All images are now showing now.

Follow these steps:

STEP 1:

Step 1:

STEP 2:

Step 2

STEP 3:

Step 3

and then Import images which you need. Reference Link: StackOverflow link

like image 6
Manab Kumar Mal Avatar answered Nov 02 '22 16:11

Manab Kumar Mal


In my case the picture was a JPG and not a PNG. Replacing image in xcasset for the same image converted to PNG was the trick.

like image 4
Esteve Avatar answered Nov 02 '22 15:11

Esteve