redribben

whichone?

Jan 19th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. option 1:
  2. NSLayoutConstraint *widthConstraint = [NSLayoutConstraint constraintWithItem:myScrollView
  3.                                                                        attribute:NSLayoutAttributeWidth
  4.                                                                        relatedBy:NSLayoutRelationEqual
  5.                                                                           toItem:self.view
  6.                                                                        attribute:NSLayoutAttributeWidth
  7.                                                                       multiplier:1.0
  8.                                                                         constant:0];
  9.  
  10. option 2:
  11. NSLayoutConstraint *widthConstraint = [NSLayoutConstraint constraintWithItem:self.view
  12.                                                                        attribute:NSLayoutAttributeWidth
  13.                                                                        relatedBy:NSLayoutRelationEqual
  14.                                                                           toItem:myScrollView
  15.                                                                        attribute:NSLayoutAttributeWidth
  16.                                                                       multiplier:1.0
  17.                                                                         constant:0];
Advertisement
Add Comment
Please, Sign In to add comment