UIView(ADKAutoLayoutSupport) Category Reference
| Declared in | UIView+ADKAutoLayoutSupport.h UIView+ADKAutoLayoutSupport.m |
|---|
– ADKHideView:withConstraints:
Hide/unhide view and it’s constraint, e.g. ADKLayoutAttributeBottom | ADKLayoutAttributeHeight will handle both bottom constraint and height constraint
- (void)ADKHideView:(BOOL)isHidden withConstraints:(ADKLayoutAttribute)attributesParameters
isHidden |
View will hide for YES, show for NO |
|---|---|
attributes |
Constraints will be affect, please reference ADKLayoutAttribute |
Declared In
UIView+ADKAutoLayoutSupport.h
– ADKHideViewWidth
Support auto layout to hide view’s width.
- (void)ADKHideViewWidthDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKUnhideViewWidth
Support auto layout to unhide view’s width.
- (void)ADKUnhideViewWidthDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKHideViewHeight
Support auto layout to hide view’s height.
- (void)ADKHideViewHeightDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKUnhideViewHeight
Support auto layout to unhide view’s height.
- (void)ADKUnhideViewHeightDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKHideTopConstraint
Support auto layout to hide view’s top constraint.
- (void)ADKHideTopConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKUnhideTopConstraint
Support auto layout to unhide view’s top constraint.
- (void)ADKUnhideTopConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKHideBottomConstraint
Support auto layout to hide view’s bottom constraint.
- (void)ADKHideBottomConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKUnhideBottomConstraint
Support auto layout to unhide view’s bottom constraint.
- (void)ADKUnhideBottomConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKHideLeadingConstraint
Support auto layout to hide view’s leading constraint.
- (void)ADKHideLeadingConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKUnhideLeadingConstraint
Support auto layout to unhide view’s leading constraint.
- (void)ADKUnhideLeadingConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKHideTrailingConstraint
Support auto layout to hide view’s trailing constraint.
- (void)ADKHideTrailingConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKUnhideTrailingConstraint
Support auto layout to unhide view’s trailing constraint.
- (void)ADKUnhideTrailingConstraintDeclared In
UIView+ADKAutoLayoutSupport.h
– ADKSetConstraintConstant:forAttribute:
Support auto layout to set constraint constant on view easily.
- (void)ADKSetConstraintConstant:(CGFloat)constant forAttribute:(NSLayoutAttribute)attributeParameters
constant |
Set view’s constraint constant with CGFloat. |
|---|---|
attribute |
Set view’s attribute with NSLayoutAttribute. |
Declared In
UIView+ADKAutoLayoutSupport.h
– ADKConstraintForAttribute:
Support auto layout to get NSLayoutConstraint instance on view easily.
- (NSLayoutConstraint *)ADKConstraintForAttribute:(NSLayoutAttribute)attributeParameters
attribute |
Set view’s attribute with NSLayoutAttribute. |
|---|
Declared In
UIView+ADKAutoLayoutSupport.h