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 } }

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
Post a Comment