Whenever I want to use scroll view , I take UIView in IB & add my contents (label , text field , imageviews etc) on that UIView. Once done , I add UIView as subview to scroll view & set scroll views content size in programatically.
Whether I add constraints or not to UIView & its subviews , it works perfectly.
So my question is do we need constraints for UIView & its subview that added in UIScrollView ? Can anybody explain this ? Thanks in advance.
Yes, You Can add constraints to all subviews in the scrollview.
If you add constraints to all subviews,
So better to use Auto Layout to views.