Iphone - UIImageView not showing up - iphone

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.

Related

Loading different images for iPhone and iPad

I have read this post: How to support both iPad and iPhone retina graphics in universal apps and know that all I need to place ~ipad at the back of the name of the image to have it read properly. I have done this.
The problem is that the image appears correctly in the simulator. I can see that it reading the correct image from the size. But same image is appears as the iPhone Version in the device. Not sure why this is happening.
Need some guidance on this...
Every time I've had the proper image in the simulator, and image not showing up on the device, its been the same thing: UpperCase lowerCase mismatch on the name. i.e. You are asking for myPicture of type png, and your file is named MyPicture.png.
The simulator doesn't mind the case difference, but the device won't recognize the improper name.

Partial black background in iphone safari

a few days ago I realized that my homepage www.blog-it-solutions.de will not correctly represented in iPhone Safari.
This is how it looks:
Has anyone an idea what happend?
Maybe it's a png which is somewhere in the page, i've had the same problem on my website and I solved it by converting the png into jpeg and it worked
You may either:
Re-save the files as other image files (JPEG, GIF)
If it is a gradient image, then you may use CSS3 Gradient to achieve the effect.

iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

When I compile my app in Xcode 4.3.1 with iOS 5.1, I notice there is a strange behavior with background textures only on actual device. There is a 1px gap in between texture tiles shown in screenshot below.
My texture are 150x150 and 300x300 at 2x.
So far I've tested the same build on:
Simulator iPhone/iPad both 5.0/5.1: No bug
iPhone/iPad running 5.0.1: No bug
iPhone/iPad running 5.1: Buggy
I've been getting the same problem since 5.1 aswell. I solved it by doing the following to the image in photoshop. You can probably do the same in another tool.
Load the file, select all, and copy to clipboard
Create a new file in photoshop that is the same dimension, RGB and 8bit depth with 72pixels/inch resolution with a white background.
Paste the image you copied in step 1 into this image
Save the file and use this one.
After doing this the file displayed correctly on the device and I didn't have to resort to creating images the size of the display.
My workaround:
Set "Compress PNG Files" to "No" in Build Settings. In my case the size of the app bundle was even smaller than with compression turned on. I did image optimization myself.
just in case anyone else is having this problem and uses pngoptimizer, try a new png without optimizing it.
I had the same problem and spent the last 4 hours trying to solve it.
In the end i realized it was png file from the pngoptimizer tool that somehow always worked before iOS 5.1 but with the update the same png file produces this thin line at the bottom. the strange thing is that this does only happen on the device and not in simulator and that deceives you a lot because you think it cant be the graphic. in fact it is.

How can I change the initial loading image

How can I change the initial image when app is loading. Currently it is set to default.jpg but I don't know where in the project I can change it.
Thanks
You change it in the Info.plist. It is also my understanding that this image must be a .png file, not a .jpg.
You are looking for file called 'Default.png'. In xCode it will likely be in your Resources folder.
If you are supporting anything other than a regular iPhone (so retina or iPad) you will need extra Launch images

UIImageView missing when the app is running in a device

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?