NSLayoutConstraint+PKDownloadButton.h 1.0 KB

123456789101112131415161718
  1. #import <UIKit/UIKit.h>
  2. @interface NSLayoutConstraint (PKDownloadButton)
  3. + (NSArray *)constraintsForWrappedSubview:(UIView *)view withInsets:(UIEdgeInsets)insets;
  4. + (NSArray *)horizontalConstraintsForWrappedSubview:(UIView *)view withInsets:(UIEdgeInsets)insets;
  5. + (NSArray *)verticalConstraintsForWrappedSubview:(UIView *)view withInsets:(UIEdgeInsets)insets;
  6. + (NSLayoutConstraint *)constraintForView:(UIView *)view withWidth:(CGFloat)width;
  7. + (NSLayoutConstraint *)constraintForView:(UIView *)view withHeight:(CGFloat)height;
  8. + (NSArray *)constraintsForView:(UIView *)view withSize:(CGSize)size;
  9. + (NSArray *)constraintsWithVisualFormat:(NSString *)format views:(NSDictionary *)views;
  10. + (NSLayoutConstraint *)constraintForCenterByYView:(UIView *)overlay withView:(UIView *)view;
  11. + (NSLayoutConstraint *)constraintForCenterByXView:(UIView *)overlay withView:(UIView *)view;
  12. // Constraints for center view above it's superview
  13. + (NSArray *)constraintsForCenterView:(UIView *)overlay;
  14. + (NSArray *)constraintsForCenterView:(UIView *)overlay withView:(UIView *)view;
  15. @end