1234567891011121314151617181920212223242526272829303132 |
- //
- // JWAlertSheetView.h
- // JWlive
- //
- // Created by 蒋理智 on 16/3/25.
- // Copyright © 2016年 pican zhang. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- 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<ZCAlertAction *> *)arr;
- - (id)initWithAttrbuteTitle:(NSAttributedString *)attrbuteTitle andShowCancelButton:(BOOL)show andAction:(NSArray<ZCAlertAction *> *)arr;
- - (void)show;
- - (void)hide;
- @end
|