Skip to content

Instantly share code, notes, and snippets.

@martinpilch
Created July 16, 2013 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinpilch/6010712 to your computer and use it in GitHub Desktop.
Save martinpilch/6010712 to your computer and use it in GitHub Desktop.
AutoLayout - image view width
constraints = [NSLayoutConstraint constraintsWithVisualFormat:@"H:|-8-[_spotNameLabel(<=140)]"
options:NSLayoutFormatAlignAllBaseline
metrics:nil
views:viewsDictionary];
constraints = [NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_spotNameSeparator(==_spotNameLabel)]"
options:NSLayoutFormatAlignAllBaseline
metrics:nil
views:viewsDictionary];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment