Search code examples
iosxcodeautolayoutxcode7nslayoutconstraint

Specify Visual Format Language within Interface Builder?


Is it possible to specify a constraint using Visual Format Language from within the Interface Builder and have it reflected?


Solution

  • As @Bringo said, it's designed for programmatically defining constraints. But before using it, I'd suggest looking at the new NSLayoutAnchor based method for programmatically setting up constraints. See Layout Anchors in Apples documentation. I've found anchors to be a simple API to use.