0

I am new in iOS. I have added UIImageView in UITableViewCell. I set imagewidth = 1/6 screen width and imageheight = 5/3 width then I add an default photo to the imageview. I want the photo will fill the imageview so I choose mode ScaleToFill but the imageview displays strange.

Here is the image if I set mode Aspect Fit 123

Here is the image if I set mode Scale To Fill

123

I have tested with another image but it has the same problem. I test on X-Code 7.1, simulator IPad2 /IOS 9.1.
Anyone can give me some ideas to solve this problem.
Any help would be appreciated.

Linh
  • 57,942
  • 23
  • 262
  • 279
  • Based on image it will take.... if your image is small like 100X100.. but you're tableviwecell imageview 100 X 200... it's looks bad.... – Yalamandarao Nov 16 '15 at 08:48
  • thank you for your suggestion, but I don't care about the image quality, I just want it fill uiimageview. – Linh Nov 16 '15 at 08:57

0 Answers0