UIViewController+ModalPresentationStyle.h 721 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // UIViewController+ModalPresentationStyle.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2020/3/14.
  6. // Copyright © 2020 JCZ. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIViewController (ModalPresentationStyle)
  11. /**
  12. Whether or not to set ModelPresentationStyle automatically for instance, Default is [Class rq_automaticallySetModalPresentationStyle].
  13. @return BOOL
  14. */
  15. @property (nonatomic, assign) BOOL rq_automaticallySetModalPresentationStyle;
  16. /**
  17. Whether or not to set ModelPresentationStyle automatically, Default is YES, but UIImagePickerController/UIAlertController is NO.
  18. @return BOOL
  19. */
  20. + (BOOL)rq_automaticallySetModalPresentationStyle;
  21. @end
  22. NS_ASSUME_NONNULL_END