UIViewController+Layout.h 653 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // UIViewController+Layout.h
  3. // CommonLibrary
  4. //
  5. // Created by Alexi on 3/13/14.
  6. // Copyright (c) 2014 Alexi. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIViewController (AsChild)
  10. - (void)setAsChild:(BOOL)asChild;
  11. - (BOOL)asChild;
  12. - (void)setChildSize:(CGSize)childSize;
  13. - (CGSize)childSize;
  14. @end
  15. @interface UIViewController (Layout)
  16. // 界面进入时重新布局
  17. - (void)layoutOnViewWillAppear;
  18. - (void)layoutSubviewsFrame;
  19. - (void)layoutOnIPhone;
  20. - (void)layoutOnIPadInPortrait;
  21. - (void)layoutOnIPadInLandScape;
  22. - (void)addOwnViews;
  23. - (void)configOwnViews;
  24. @end
  25. @interface UITabBarController (Layout)
  26. @end