Reputation: 135
I have a problem with the navigation controller and the view. However, I have created a view with a constraint: "Top Space to: Top Layout Guide : 0". I get this result with the simulator:
How to get the view correctly?
Thank you!
EDIT :
The problem is the top of the view is hidden by the navigation controller. On my screenshot, you can see that the segmented control is cut ! The top of the view is not show, even in the storyboard file.
Upvotes: 0
Views: 139
Reputation: 3013
Use edgesForExtendedLayout
property to report which edges of your view controller extend underneath navigation bars or other system-provided views.
self.edgesForExtendedLayout = []
Upvotes: 3
Reputation: 3888
Select your view controller from stoaryboard,then unselect the Adjust Scrollview Insets
Upvotes: 0