QuitMultipleModeAlertViewController.h 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. //
  2. // QuitMultipleModeAlertViewController.h
  3. // sampleSDK
  4. //
  5. // Created by 王昭威 on 2023/1/18.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @class PCSButton;
  10. @interface QuitMultipleModeAlertViewController : UIViewController
  11. @property (nonatomic, weak) IBOutlet UIView* contentView;
  12. @property (nonatomic, weak) IBOutlet UILabel* titleLabel;
  13. @property (nonatomic, weak) IBOutlet UILabel* textLabel;
  14. @property (nonatomic, weak) IBOutlet PCSButton* leftButton;
  15. @property (nonatomic, weak) IBOutlet PCSButton* rightButton;
  16. + (void)show:(UIViewController *)controller withSaveButtonCallBack: (void(^)(QuitMultipleModeAlertViewController* alertController))saveCallBack discardButtonCallBack: (void(^)(QuitMultipleModeAlertViewController* alertController))discardCallBack;
  17. + (void)show:(UIViewController *)controller title: (nullable NSString*)title text: (nullable NSString*)text leftBtnTitle: (nullable NSString*)leftBtnTitle rightBtnTitle: (nullable NSString*)rightBtnTitle withLeftButtonCallBack: (void(^)(QuitMultipleModeAlertViewController* alertController))leftBtnCallBack rightButtonCallBack: (void(^)(QuitMultipleModeAlertViewController* alertController))rightBtnCallBack;
  18. - (IBAction)saveButtonTouchUpInside:(id)sender;
  19. - (IBAction)discardButtonTouchUpInside: (id)sender;
  20. @end
  21. NS_ASSUME_NONNULL_END