When using AutoLayout you can tick the "standard" box in Interface Builder or you can create it visually using... @"|-[someElement]-|"
Is there a constant that I can use to access the value that this "standard" represents?
I want to create an NSLayoutConstraint
where the constant
property is equal to this standard
value.
According to this answer to What constant can I use for the default Aqua space in Autolayout?, the standard Aqua space is
8.0 between sibling views, and 20.0 between a view and its superview.
There are no predefined constants so you'd have to define your own.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With