| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // POImageTitleAlertView.h
- // powerone
- //
- // Created by SuperYann on 2023/5/16.
- // Copyright © 2023 onecloud.ltd. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSUInteger, MOAlertViewType)
- {
- MOImageAndTextCellType = 0, //图文
- MOOnlyTextCellType //文本
- };
- NS_ASSUME_NONNULL_BEGIN
- @interface MOImageTitleAlertView : UIView
- /** 取消按钮的颜色 */
- @property (nonatomic, strong) UIColor *cancelBtnColor;
- /** 界面title的颜色 */
- @property (nonatomic, strong) UIColor *titleColor;
- /** 取消文本 */
- @property (nonatomic, strong) NSString *cancelText;
- /** cell点击事件 */
- @property (nonatomic, copy) void (^cellClickBlock) (NSInteger index);
- /// 弹出视图
- /// - Parameters:
- /// - title: 标题
- /// - message: 内容
- /// - buttonArray: 响应数组
- - (instancetype)initForOperateSuccessWithFrame:(CGRect)frame ViewType:(MOAlertViewType)viewType DataArray:(NSArray *)dataArray;
- ///展示方法
- - (void)show;
- ///隐藏方法
- - (void)dismiss;
- @end
- NS_ASSUME_NONNULL_END
|