ViewController+MASAdditions.h 891 B

123456789101112131415161718192021222324252627282930
  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