MOTitleNormalAlertView.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // MOTitleNormalAlertView.h
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2023/11/5.
  6. //
  7. #import <UIKit/UIKit.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface MOTitleNormalAlertView : UIView
  10. /** 白色弹窗view */
  11. @property (nonatomic, strong) UIView *containerView;
  12. /** 背景图 */
  13. @property (nonatomic, strong) UIImageView *bgImgView;
  14. /** 标题 */
  15. @property (nonatomic, strong) UILabel *titleLabel;
  16. /** 子标题 */
  17. @property (nonatomic, strong) UILabel *subTitleLabel;
  18. /** 确认 */
  19. @property (nonatomic, strong) BigBtn *confirmBtn;
  20. /** 取消 */
  21. @property (nonatomic, strong) BigBtn *cancelBtn;
  22. /** 强制关闭按钮 */
  23. @property (nonatomic, strong) BigBtn *closeBtn;
  24. @property (nonatomic, assign) CGFloat twoBtnWidth;
  25. @property (nonatomic, copy) void (^confirmBlock) (void);
  26. @property (nonatomic, copy) void (^cancelBlock) (void);
  27. /** 是否单个按钮 */
  28. @property (nonatomic, assign) BOOL isSingleBtn;
  29. @property (nonatomic, assign) BOOL isStrongBg;
  30. @property (nonatomic, assign) BOOL isShowCloseBtn;
  31. @property (nonatomic, copy) void (^dismissBlock)(void);
  32. #pragma mark - VIP
  33. @property (nonatomic, assign) BOOL isVipTip;
  34. ///view展示
  35. - (void)show;
  36. ///view隐藏
  37. - (void)dismiss;
  38. @end
  39. NS_ASSUME_NONNULL_END