ios - UIView doesn't scroll inside UIScrollView in vertical -


i have uiviewcontroller. has uiview 3 objects(uilabel, uiimageview, uitextview) inside uiscrollview. when try scroll vertical nothing happens. use autolayout. before made without uiview inside uiscrollview there empty space in bottom.

@iboutlet weak var scrollview: uiscrollview! {     didset {         scrollview.delegate = self         scrollview.scrollenabled = true         self.scrollview.frame.size = scrollview.contentsize //12     } } 

enter image description here enter image description here

if using auto layout no need set frame of scrollview, give view subview of scrollview height constraint e.g. 800 , set scrollview , outer view width constraint match width each device , set scrollview frame using autolayout, start scrolling.

refer link further details


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -