This is my view hierarchy,
UIView
UIScrollView
UIView
UIView
UIButton
UIView
UIView
UIButton
UIView
UIView
UIButton
...
I have set Leading / Trailing and Top/Bottom space constraints to UIScrollView
. But don't know why, inside contents are more than UIScrollView
s width? Its moving like all around (I don't know how to explain this?)... Is this an issue of contentSize
? If so, that I haven't set any where. Is it required to set it? Or any constraints I missed to add?
P.S. I'm pretty new to Autolayout.
UIView
insideScrollview
to hold all otherUIViews
inside it. – BistaUIView
and Contraint its all sides to the Scroll View. The addedUIView
is called Content View, as it will contain all the content of Scroll View. – Bista