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
- what should size of image inside imageview have proper aspect ratio.
- 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
Post a Comment