Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 7 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.