I just started learning AutoLayout for iOS and had a look at Visual Format Language.
It all works fine except for one thing: I just can\'t get a view to center withi
What it have to be done is that superview should be declared in the dictionary. Instead of using | you use @{@"super": view.superview};.
|
@{@"super": view.superview};
And NSLayoutFormatAlignAllCenterX for vertical and NSLayoutFormatAlignAllCenterY for horizontal as options.
NSLayoutFormatAlignAllCenterX
NSLayoutFormatAlignAllCenterY