Before adding the toolbar:
It seems the intended fix for this is simply adding constraints for the toolbar and updating frames:
However this does not fix the Nav Bar underlap issue on my setup (XCode 8.2.1, iPhone 7Plus sim.)
Is there a universal fix to this issue?
Cheers!
A little bit silly -
In constraint ‘Stack View.top = Top Layout Guide.bottom’, I just reset the constant to 0.
(The constant had changed when I shifted the stack view to make room for the toolbar.)
I struggled with this for some time as well.
In order to delete the bottom constraint, I made sure that Stack View was selected in the directory hierarchy across the top o the window (or you could select Stack View in the Document Outline at the left). There is a very small constraint beam at the bottom of the Stack view below the UIImageView which can be selected and then deleted. This will remove one of the constraints but I can’t remember which one.
But if you try to drag the bottom of the stack up, it keeps reverting to sticking to the bottom.
The trick is to drag the top of the stack up, holding above Item, and let go. It will stay up and appear like the view shown on page 262.
Now when you insert the UIToolBar, it will be above the bottom of the stack, rather than underlapping it.
When you drop the UIToolBar, make sure it is well off centre and hasn’t stuck to either side, so that the values in the left and right constraints as shown on page 263 can be altered to zero, and thus count towards your 5 constraints to be added.
My issue was a little different Andrew -
The stack view was underlapping the Navigation Bar (at the top of the view), not the Toolbar (at the bottom). It was a slightly different process to yours to fix the problem.
Thanks for the response!