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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -