Skip to content

Instantly share code, notes, and snippets.

@semireg
Created February 19, 2014 22:12
Show Gist options
  • Select an option

  • Save semireg/9102768 to your computer and use it in GitHub Desktop.

Select an option

Save semireg/9102768 to your computer and use it in GitHub Desktop.
ConstraintsRemove (void) remove;
ConstraintPreparationForView void PrepareViewForAutoLayout(VIEW_CLASS *view);
ConstraintsInstall void InstallConstraints(NSArray *constraints, NSUInteger priority);
ConstraintsRemove void RemoveConstraints(NSArray *constraints);
ConstrainToSuperview void ConstrainToSuperview(VIEW_CLASS *view, CGFloat inset, NSUInteger priority);
ConstrainMinimumSize void ConstrainMinimumViewSize(VIEW_CLASS *view, CGSize size, NSUInteger priority);
ConstrainMaximumSize
ConstrainSize
void SizeView(VIEW_CLASS *view, CGSize size, NSUInteger priority);
ConstrainToPosition void PositionView(VIEW_CLASS *view, CGPoint point, NSUInteger priority);
ConstrainToSuperview (dupe?) void StretchViewToSuperview(VIEW_CLASS *view, CGSize inset, NSUInteger priority);
ConstrainToSuperviewCenter void CenterViewInSuperview(VIEW_CLASS *view, BOOL horizontal, BOOL vertical, NSUInteger priority);
ConstrainByAlignment void AlignViews(VIEW_CLASS *view1, VIEW_CLASS *view2, NSLayoutAttribute attribute, NSUInteger priority);
void ConstrainView(NSString *formatString, VIEW_CLASS *view, NSUInteger priority);
void ConstrainViews(NSString *formatString, VIEW_CLASS *view1, VIEW_CLASS *view2, NSUInteger priority);
void ConstrainViewArray(NSString *formatString, NSArray *viewArray, NSUInteger priority);
void ConstrainViewsWithBinding(NSString *formatString, NSDictionary *bindings, NSUInteger priority);
ConstrainContentHugging void SetHuggingPriority(VIEW_CLASS *view, NSUInteger priority);
ConstrainCompressionResistance void SetResistancePriority(VIEW_CLASS *view, NSUInteger priority);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment