PNSBuildModelUtils.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // PNSBuildModelUtils.h
  3. // ATAuthSceneDemo
  4. //
  5. // Created by 刘超的MacBook on 2020/8/6.
  6. // Copyright © 2020 刘超的MacBook. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NS_ENUM(NSUInteger, PNSBuildModelStyle) {
  11. //全屏
  12. PNSBuildModelStylePortrait,
  13. PNSBuildModelStyleLandscape,
  14. PNSBuildModelStyleAutorotate,
  15. //弹窗
  16. PNSBuildModelStyleAlertPortrait,
  17. PNSBuildModelStyleAlertLandscape,
  18. PNSBuildModelStyleAlertAutorotate,
  19. //底部弹窗
  20. PNSBuildModelStyleSheetPortrait,
  21. //DIY 动画
  22. PNSDIYAlertPortraitFade,
  23. PNSDIYAlertPortraitDropDown,
  24. PNSDIYAlertPortraitBounce,
  25. PNSDIYPortraitFade,
  26. PNSDIYPortraitScale,
  27. };
  28. @interface PNSBuildModelUtils : NSObject
  29. + (TXCustomModel *)buildModelWithStyle:(PNSBuildModelStyle)style
  30. button1Title:(NSString *)button1Title
  31. target1:(id)target1
  32. selector1:(SEL)selector1
  33. button2Title:(NSString *)button2Title
  34. target2:(id)target2
  35. selector2:(SEL)selector2;
  36. @end
  37. NS_ASSUME_NONNULL_END