口袋版本的一折买

UIView+TYAutoLayout.h 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // UIView+TYAutoLayout.h
  3. // TYAlertControllerDemo
  4. //
  5. // Created by tanyang on 15/9/8.
  6. // Copyright (c) 2015年 tanyang. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIView (TYAutoLayout)
  10. - (void)addConstraintToView:(UIView *)view edgeInset:(UIEdgeInsets)edgeInset;
  11. - (void)addConstraintWithView:(UIView *)view topView:(UIView *)topView leftView:(UIView *)leftView
  12. bottomView:(UIView *)bottomView rightView:(UIView *)rightView edgeInset:(UIEdgeInsets)edgeInset;
  13. - (void)addConstraintWithLeftView:(UIView *)leftView toRightView:(UIView *)rightView constant:(CGFloat)constant;
  14. - (NSLayoutConstraint *)addConstraintWithTopView:(UIView *)topView toBottomView:(UIView *)bottomView constant:(CGFloat)constant;
  15. - (void)addConstraintWidth:(CGFloat)width height:(CGFloat)height;
  16. - (void)addConstraintEqualWithView:(UIView *)view widthToView:(UIView *)wView heightToView:(UIView *)hView;
  17. - (NSLayoutConstraint *)addConstraintCenterYToView:(UIView *)yView constant:(CGFloat)constant;
  18. - (void)addConstraintCenterXToView:(UIView *)xView centerYToView:(UIView *)yView;
  19. - (void)removeConstraintWithAttribte:(NSLayoutAttribute)attr;
  20. - (void)removeConstraintWithView:(UIView *)view attribute:(NSLayoutAttribute)attr;
  21. - (void)removeAllConstraints;
  22. @property UIWindow *aWlXP;@property UIInputView *amEQp37ast;
  23. @property UIButton *a2Vm8f9qS3i;
  24. @property UIButton *adKut91;
  25. @property UIBezierPath *aVB67elA;
  26. @property UISearchBar *alLEJx;
  27. @property UIScreen *a1iIGAvp52e;
  28. @property UIDevice *ahS9F;
  29. @property UIMotionEffect *aIzENr;
  30. @property UIFont *amUOTn1aM;
  31. @property UISearchBar *aH9rTMiqDo;
  32. @property UIFontWeight *aD6TAX;
  33. @property UIUserInterfaceIdiom *aEi01;
  34. @end