0

I am using UIViewContentModeScaleToFill to fill the image in my imageview. but the image looks streched. how to fix this?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Arun
  • 733
  • 1
  • 9
  • 19

1 Answers1

0

You can't fill in the imageview and at the same time have it preserve the aspect ratio. If you want the image not stretched use:

UIViewContentModeScaleAspectFit

Find more details here

egghese
  • 2,193
  • 16
  • 26