ios - Setting UIScrollView Width -


i have uiscrollview added viewcontroller. , view on top of scrollview. have done following:

  1. placed scroll view inside original view , set top, left, right, , bottom constraints. unchecking constrain margins.

  2. added uiview within scrollview (to hold labels , such) , added top, left, right, , bottom constraints, constrain margins unchecked. , set equal widths original view

  3. i add image view , 3 labels inside view placed within scroll view. , add top, left, right, bottom, , height constraints them.

the scroll view works , view scroll , labels , image view centered wide.

i wondering how make view not wide , cannot scroll horizontally, vertically.

add equal-widths constraint between view inside scroll view, , root-level view of view controller.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -