objective c - UIImageView fit to View frame size -


When I create a new ViewController and I pull it UIImageView, the UIIV increases to fit the fullscreen with width and height Is the screen? If I make changes between 4 and 3,5 "screen, then UIImageView changes its height dynamically.

 But when I try to insert a UIImageView in a scene with more elements, then this UIImageView is set with a ratio of 4: 3 ratio, and if I make it full screen But try to change again, when I change between screen sizes, then a part of the image The Ipa. </ p> <p> <img src =

How do I fix it Can i

short answer: Use auto layout


Long answer :

  1. Select the image view, left , on the right , top , bottom < /var>
  2. Select the image view, update the frame

     step1


     step2

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -