// // DXAlertView.h // Elephant // // Created by dyy on 2018/1/19. // Copyright © 2018年 dyy. All rights reserved. // #import @class DXAlertView; @protocol DXAlertViewDelegate @optional - (void)dxAlertView:(DXAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex; @end; typedef void (^clickBlock) (NSInteger); @interface DXAlertView : UIView @property (nonatomic,weak)iddelegate; @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