酷店

ViewController+MASAdditions.h 891B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // UIViewController+MASAdditions.h
  3. // Masonry
  4. //
  5. // Created by Craig Siemens on 2015-06-23.
  6. //
  7. //
  8. #import "MASUtilities.h"
  9. #import "MASConstraintMaker.h"
  10. #import "MASViewAttribute.h"
  11. #ifdef MAS_VIEW_CONTROLLER
  12. @interface MAS_VIEW_CONTROLLER (MASAdditions)
  13. /**
  14. * following properties return a new MASViewAttribute with appropriate UILayoutGuide and NSLayoutAttribute
  15. */
  16. @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuide;
  17. @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuide;
  18. @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideTop;
  19. @property (nonatomic, strong, readonly) MASViewAttribute *mas_topLayoutGuideBottom;
  20. @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideTop;
  21. @property (nonatomic, strong, readonly) MASViewAttribute *mas_bottomLayoutGuideBottom;
  22. @end
  23. #endif