Question

I'm facing the problem that I want to have the toolbar of UINavigationController to appear over the content.

Right now, subviews inside the navigation controller are resized to fit: V:|[myview][toolbar]|

However, I'd appreciate having the following: V:|[myview]|, where the toolbar is still at the bottom of course.

Since I'm using the navigationController's toolbar, I have no influence on the constraints.

Does anyone have suggestions how to get the effect I'm looking for?

Cheers

Was it helpful?

Solution

I figured it out. I have to use bottomLayoutGuide instead of | for the constraint.

So, the format string should look like V:[topLayoutGuide][myView][bottomLayoutGuide], where topLayoutGuide and bottomLayoutGuide are the same called properties on `UIViewController'.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top