UIImageView missing when the app is running in a device - iphone

I am adding a UIImageView to my view in viewDidLoad.
It works fine when I run the application using the simulator, but when I use a device the image is not shown.
Any idea?

It sounds like the image, not the ImageView, is missing. How are you loading the Image into the ImageView? Make sure that you are loading an image that is part of your XCode project so that it gets released along with the app itself.

Crazy question. Is it included as part of your build target?

Related

Launch image can't be deleted from Xcode project

I added a launch image to my iPhone app in Xcode, but after while, I realized that it wasn't the right image, so I deleted it , but the problem, the image is still showing up on the app.
I have tried building and cleaning from scratch but still no luck .
Any help would be appreciated.
#TheEighthEro:
SOLUTION:
Considering that you have properly deleted the Default.png
In this Target Settings , go to Copy Bundle Resources. Remove the Default.png from there too.
Clean and Rebuild and Run the app. I am sure it won't show up then.
I think that should work for you.
Also try refering to following links:
can't remove splash screen image in iOS Simulator
http://www.iphonedevsdk.com/forum/iphone-sdk-development/81470-cant-remove-splashscreen.html
Hope this helps.
Did you remove the reference to the image in your app's info PLIST and/or the project build properties? Did you delete the image from the filesystem or just delete the reference in XCode? I would check both those things and then do a clean build.
Good Luck.
I was founded another reason to have it. If u disable to use asset catalog for launch images, but keep images inside image set, Xcode anyway using images from image set (definitely bug in Xcode). After removing, clean and removing app from a device/simulator, problem is gone.
That’s not possible. Every iOS app have a launch image, which you can change. The shorter your app takes to load, the shorter you’ll see that image. There is absolutely no way around this, since it’s something Apple specifically did to ensure that the user is never left with a black screen (that’s somewhere in the documentation I think).
If you want an animation, change your first scene to a scene with that animation, which redirects to your home scene after the animation is done. You can make your user think the launch image is part of the animation by having your first animation frame be the same as that image. That’s how most games do (Infinity Blade for example).
Link: http://discuss.cocos2d-x.org/t/custom-launch-image-solved/6055/5

Dropshadow in a a transparent .png not rendering correctly on iOS device

I am using the following image as the image property for a UIImageView. It is semitransparent with a semitransparent drop shadow. When I display this view, it is rendered above a video with a white background. The drop shadow is not visible. When I take a screenshot from the device, the shadow shows up in the image. It seems like something is going wrong when the image is drawn, or the contrast is off on the device. The other interesting thing is that it looks fine on the simulator. Any ideas on why this is happening?
EDIT: I've tried cleaning the build.
try this:
1.delete your app in the device
2.in xcode menu:build:clean (and clean all targets)
3.in your project folder delete the folder "build"
it happens sometimes that xCode doesn't refresh the new images or other resources files when we modify them...
i lost a lot of time looking for code errors... to discover that it was just a bug in xCode compile/copy resource process...
hope this could be your case too...
luca

Iphone - UIImageView not showing up

I have created a UIImageView in Interface Builder. When I run the application on the simulator the image shows up, when I run the application on the device the image doesn't show up. Any help is welcome. Thank you!!!
Check your image format, sometimes the image format may not be supported by the device.
Just found out the problem...Thank for the help. The issue was I copied the image from the internet and saved it with a .png file extension without converting it. Then I brought the image into xcode. After I used gimp to convert my image to a .png and replaced it inside xcode it worked properly.

Image not getting displayed in View

I am creating a simple app for iphone...I am just learning iphone programming..
I have just added image view and added a image to it...
When i run and build it...i am not able to see the image..
Am i missing something?

UIImageView showing 'old' image

I have an app that shows a series of UIImageViews on a ScrollView. The app starts by loading a 'splash page' then transitioning to the first image to be shown. The image for the splash page is actually loaded into the UIImageView nib in Interface Builder.
The problem I am having is that I am trying to reuse this app for a different set of images (the app is basically a template). This includes the splash page. I have done everything I can think of to replace the splash page image including, of course, modifying the view in Interface Builder and loading a different image. However, the previous splash page image still appears briefly when I run the app in simulator.
I have also tried: reviewing the .xib file text; removing the build directory from the app.
Looking for any suggestions on how to make this old image go away.
Edit: I have also deleted the 'old' image from the project. So it seems as if it is still being stored somewhere. Have also deleted the icons from Simulator.
isn't it the Default.png ?