If you really want it to be proportional to the size of the screen, you can make the restriction proportional:
NSLayoutConstraint *bottomConstraint = [NSLayoutConstraint constraintWithItem:label
attribute:NSLayoutAttributeBottom
relatedBy:NSLayoutRelationEqual
toItem:label.superview
attribute:NSLayoutAttributeBottom
multiplier:1
constant:0];
bottomConstraint.constant = -(label.superview.bounds.size.height * .06);
A few notes:
1) You will need to set this restriction constant when the view is laid out, therefore it label.superviewhas a height. updateConstraintsis a good place to do this.
2) , , layout.superview , , . , . , .
, @Handsomeguy :
bottomConstraint.constant = -([UIScreen mainScreen].bounds.size.height * .06);