xcode - UIView `readableContentGuide` in Interface Builder? -


the ios 9 readablecontentguide uilayoutguide (essentially, thing can pin constraints to) uiviews have. idea keep subviews text being wide on ipad in landscape.

it's easy configure in code (v1 subview, v superview):

nslayoutconstraint.activateconstraints([     v1.topanchor.constraintequaltoanchor(v.readablecontentguide.topanchor),     v1.bottomanchor.constraintequaltoanchor(v.readablecontentguide.bottomanchor),     v1.rightanchor.constraintequaltoanchor(v.readablecontentguide.rightanchor),     v1.leftanchor.constraintequaltoanchor(v.readablecontentguide.leftanchor) ]) 

now then. far good. however... in 2 different wwdc videos, claimed quite explicitly can configure pinning subview superview's readablecontentguide in interface builder.

but don't explain how that.

so question is: how do it?

pin subview's edges superview's margins usual.

now, in superview's size inspector, check follow readable width checkbox:

enter image description here


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -