ios - adding uiimageview inside scrollview using auto layout is adding space at top and bottom -


i trying design ios screen.i want design screen showing imageview @ top of screen , scrollview having image view @ bottom of screen. want design screens ios 6 , 6 plus

i have added imageview @ top 400 width , 239 height (image size 750w , 448h).this scroll view should scroll in app show full image on screen.

i have added scrollview , imageview inside scrollview.my image size inside scrollview 750 width , 1134 height.

i can see width , height of total screen 400w , 800h.

i want know

  1. what should size of image inside imageview have proper aspect ratio.
  2. i have created imageview of 400w,605h size. scrollview adding space @ top , bottom of screen. 3.what should constraint fitting larger image inside scrollview.

extra space @ top , bottom of scrollview big problem me

add contentmode imageview example:

imageview.contentmode = .scaleaspectfill 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -