MOImageTitleAlertView.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // POImageTitleAlertView.h
  3. // powerone
  4. //
  5. // Created by SuperYann on 2023/5/16.
  6. // Copyright © 2023 onecloud.ltd. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSUInteger, MOAlertViewType)
  10. {
  11. MOImageAndTextCellType = 0, //图文
  12. MOOnlyTextCellType //文本
  13. };
  14. NS_ASSUME_NONNULL_BEGIN
  15. @interface MOImageTitleAlertView : UIView
  16. /** 取消按钮的颜色 */
  17. @property (nonatomic, strong) UIColor *cancelBtnColor;
  18. /** 界面title的颜色 */
  19. @property (nonatomic, strong) UIColor *titleColor;
  20. /** 取消文本 */
  21. @property (nonatomic, strong) NSString *cancelText;
  22. /** cell点击事件 */
  23. @property (nonatomic, copy) void (^cellClickBlock) (NSInteger index);
  24. /// 弹出视图
  25. /// - Parameters:
  26. /// - title: 标题
  27. /// - message: 内容
  28. /// - buttonArray: 响应数组
  29. - (instancetype)initForOperateSuccessWithFrame:(CGRect)frame ViewType:(MOAlertViewType)viewType DataArray:(NSArray *)dataArray;
  30. ///展示方法
  31. - (void)show;
  32. ///隐藏方法
  33. - (void)dismiss;
  34. @end
  35. NS_ASSUME_NONNULL_END