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

有帮助吗?

解决方案

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'.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top