I have a simple constraint, which I would prefer to specify using the Asci-art inspired format, however I cannot seem to find an example of this.
NSLayoutConstraint *centerXConstraint = [NSLayoutConstraint constraintWithItem: childView
attribute:NSLayoutAttributeCenterX
relatedBy:NSLayoutRelationEqual
toItem: parentView
attribute:NSLayoutAttributeCenterX
multiplier:1.0f
constant:0.0f]
I've tried a few things such as '|-[childView]-|' but that only forces it X points on the left of it's parent.