// // JWAlertSheetView.h // JWlive // // Created by 蒋理智 on 16/3/25. // Copyright © 2016年 pican zhang. All rights reserved. // #import typedef void(^handleBlock)(void); @interface ZCAlertAction : NSObject @property (nonatomic,copy)handleBlock block; @property (nonatomic,copy)NSString *title; + (ZCAlertAction *)actionWithTitle:(NSString *)title andblock:(handleBlock)block; @end @interface ZCAlertSheetView : UIView @property(nonatomic,strong)UIWindow* alertWindow; //这里只需要设置好每个JWAlertAction的action再以block回调过去就可以了,调价到arr数组中 - (id)initWithTitle:(NSString *)title andShowCancelButton:(BOOL)show andAction:(NSArray *)arr; - (id)initWithAttrbuteTitle:(NSAttributedString *)attrbuteTitle andShowCancelButton:(BOOL)show andAction:(NSArray *)arr; - (void)show; - (void)hide; @end