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)attributes

Parameters

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)ADKHideViewWidth

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKUnhideViewWidth

Support auto layout to unhide view’s width.

- (void)ADKUnhideViewWidth

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKHideViewHeight

Support auto layout to hide view’s height.

- (void)ADKHideViewHeight

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKUnhideViewHeight

Support auto layout to unhide view’s height.

- (void)ADKUnhideViewHeight

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKHideTopConstraint

Support auto layout to hide view’s top constraint.

- (void)ADKHideTopConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKUnhideTopConstraint

Support auto layout to unhide view’s top constraint.

- (void)ADKUnhideTopConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKHideBottomConstraint

Support auto layout to hide view’s bottom constraint.

- (void)ADKHideBottomConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKUnhideBottomConstraint

Support auto layout to unhide view’s bottom constraint.

- (void)ADKUnhideBottomConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKHideLeadingConstraint

Support auto layout to hide view’s leading constraint.

- (void)ADKHideLeadingConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKUnhideLeadingConstraint

Support auto layout to unhide view’s leading constraint.

- (void)ADKUnhideLeadingConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKHideTrailingConstraint

Support auto layout to hide view’s trailing constraint.

- (void)ADKHideTrailingConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKUnhideTrailingConstraint

Support auto layout to unhide view’s trailing constraint.

- (void)ADKUnhideTrailingConstraint

Declared In

UIView+ADKAutoLayoutSupport.h

– ADKSetConstraintConstant:forAttribute:

Support auto layout to set constraint constant on view easily.

- (void)ADKSetConstraintConstant:(CGFloat)constant forAttribute:(NSLayoutAttribute)attribute

Parameters

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)attribute

Parameters

attribute

Set view’s attribute with NSLayoutAttribute.

Declared In

UIView+ADKAutoLayoutSupport.h