0

I have an imageview in my app and I set the image of that imageview using interface builder.

This is my problem:

The actual image is this

The actual image is this

But in simulator its color have a variation and displays this

But in simulator its color have a variation and displays this

Please not the colour variation in it. What may be the reason?Any solution?

Xu Yin
  • 3,932
  • 1
  • 26
  • 46
LML
  • 1,659
  • 12
  • 29

1 Answers1

0

The reason for this, the size different between your image and Your ImageView. Actually, Here your image is stretched , that's why, It appear like this. You can solve this problem by resizing your image with code. Use this link to resize

Community
  • 1
  • 1
Mani
  • 17,549
  • 13
  • 79
  • 100
  • No the sizes are same,I have checked it the Images I added here have different size because of the size variation of screenshot – LML Feb 07 '14 at 05:50
  • @LML otherwise no idea man. Double check with your image name, You may missed that some time. – Mani Feb 07 '14 at 05:55
  • Same I can see my correct image in storyboard as well but when in simulator its colour get changed – LML Feb 07 '14 at 05:56
  • Did you check with device? One doubt. Is your xib size differ from simulator size (ie 3.5" and 4")? – Mani Feb 07 '14 at 05:57
  • Didn't check in device. No its same 4" – LML Feb 07 '14 at 06:07