RotationScreen.h 472 B

12345678910111213141516171819202122232425262728
  1. //
  2. // RotationScreen.h
  3. // AGPlayer
  4. //
  5. // Created by 吴书敏 on 16/8/3.
  6. // Copyright © 2016年 littledogboy. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. @interface RotationScreen : NSObject
  11. /**
  12. * 切换横竖屏
  13. *
  14. * @param orientation UIInterfaceOrientation
  15. */
  16. + (void)forceOrientation:(UIInterfaceOrientation)orientation;
  17. /**
  18. * 是否是横屏
  19. *
  20. * @return 是 返回yes
  21. */
  22. + (BOOL)isOrientationLandscape;
  23. @end