I need to set constraints in uiscrollview in viewcontroller containing navigationbar and tabbar.I have placed a uiview(contentView) inside scrollview which is of same height as of scrollview.These are the things which I have set curently,
- set 4 constraints for scrollview(top,bottom,left,right) with constraints to margin unchecked which is 0 for all edges.
- set 4 constraints for uiview(contentView) inside scrollview(top,bottom,left,right) with constraints to margin unchecked which is 0 for all edges.
- set equal width and equal height for scrollview and UIView(contentView)
output is displaying like this uiview(contentView) gets placed lower about 64 px (approx).This view should not place like this.Can anyone help me to solve this.
Here is the project demo which I have worked and can be downloaded here