Skip to main content

Blurry images when running my application on iPhone



So, I was creating an application for iOS with Xcode 4.2.1, I don't know why all of my icons are blurry, they are in high definition, but for some reason they looks blurry and in a bad quality.





even the background images looks bad..





Please help me, what can I do about it?





This is the original button image:





image





This is how it looks on the application:





blurry


Comments

  1. Make sure you saved the high-resolution images with the ending @2x.png, if they aren't they won't work. Also remember that the images needs to be twice the size of the pixles on the screen, that means a 50px x 50px-button will need a 100px x 100px-@2x-file.

    Read more about retina icons on https://developer.apple.com/library/ios/#documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html

    ReplyDelete
  2. In the simulator, use the new Debug menu to check whether your images are misaligned. If they are, use NSRectIntegral to fix their frames.

    ReplyDelete
  3. You should round the origin of each image. If you place image with coordinate like (250.34, 340.21) you get blurry effect.
    This is very likely to happen when you use automatic position calculation as well as center property to place your views/images.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?