1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // DXAlertView.h
- // Elephant
- //
- // Created by dyy on 2018/1/19.
- // Copyright © 2018年 dyy. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @class DXAlertView;
- @protocol DXAlertViewDelegate <NSObject>
- @optional
- - (void)dxAlertView:(DXAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;
- @end;
- typedef void (^clickBlock) (NSInteger);
- @interface DXAlertView : UIView
- @property (nonatomic,weak)id<DXAlertViewDelegate>delegate;
- @property (nonatomic, copy) clickBlock clickBlock;
- /**
- 初始化Alertview
- @param title 标题
- @param message 内容
- @param cancelTitle 取消按钮
- @param otherBtnTitle 确定按钮
- @return <#return value description#>
- */
- -(instancetype)initWithTitle:(NSString *)title message:(NSString *)message cancelBtnTitle:(NSString *)cancelTitle otherBtnTitle:(NSString *)otherBtnTitle;
- -(void)show;
- @end
|