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