UIAlertController+supportedInterfaceOrientations.m 556 B

123456789101112131415161718192021
  1. //
  2. // UIAlertController+supportedInterfaceOrientations.m
  3. //
  4. //
  5. // Created by lbxia on 16/1/16.
  6. // Copyright © 2016年 lbxia. All rights reserved.
  7. //
  8. #import "UIAlertController+supportedInterfaceOrientations.h"
  9. @implementation UIAlertController (supportedInterfaceOrientations)
  10. #if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
  11. - (NSUInteger)supportedInterfaceOrientations; {
  12. return UIInterfaceOrientationMaskPortrait;
  13. }
  14. #else
  15. - (UIInterfaceOrientationMask)supportedInterfaceOrientations {
  16. return UIInterfaceOrientationMaskPortrait;
  17. }
  18. #endif
  19. @end