CommonMacro.h 866 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // CommonMacro.h
  3. // TCLVBIMDemo
  4. //
  5. // Created by annidyfeng on 16/7/29.
  6. // Copyright © 2016年 tencent. All rights reserved.
  7. //
  8. #ifndef CommonMacro_h
  9. #define CommonMacro_h
  10. //主窗口的宽、高
  11. #define kMainScreenWidth MainScreenWidth()
  12. #define kMainScreenHeight MainScreenHeight()
  13. #define Localized(Str) NSLocalizedString(Str, Str)
  14. //static __inline__ CGFloat MainScreenWidth()
  15. //{
  16. // return UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ? [UIScreen mainScreen].bounds.size.width : [UIScreen mainScreen].bounds.size.height;
  17. //}
  18. //
  19. //static __inline__ CGFloat MainScreenHeight()
  20. //{
  21. // return UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation) ? [UIScreen mainScreen].bounds.size.height : [UIScreen mainScreen].bounds.size.width;
  22. //}
  23. #endif /* CommonMacro_h */