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

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -