ios - ScrollView inside View or Vice Versa? -
i working in ios , cannot find if there definitive answer this.
i have screen, entire thing scroll (not part of scrolling @ top). using storyboards build , content bigger screen size. best way with:
this inside of uiviewcontroller.
- the content inside view (child) inside fullscreen scrollview (parent) , set content size of scrollview view's frame.
- the content inside scrollview (child) inside fullscreen view (parent) , set content size of scrollview frame , new frame view's frame.
- just scrollview first child of viewcontroller , set content size frame , frame screen size (which need check @ runtime?)
all of these methods seem work, make other things easier/harder (moving content keyboard, etc.). matter of opinion or there "best/correct" method?
you have set content size bigger view. scroll.
Comments
Post a Comment