12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // FKAlertView.h
- // FirstLink
- //
- // Created by jack on 16/3/14.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSUInteger, kAlertViewStyle) {
- kAlertViewStyleDefault = 0,
- kAlertViewStyleDone,
- };
- @class FKAlertView;
- @protocol FKAlertViewDelegate <NSObject>
- - (void)fk_alertView:(FKAlertView *)alertView
- doneWithConfirm:(BOOL)confirm
- info:(NSDictionary *)info;
- @end
- @interface FKAlertView : UIView
- - (instancetype)initWithMessage:(NSString *)message
- delegate:(id <FKAlertViewDelegate>)delegate
- cancelButtonTitle:(NSString *)cancelTitle
- doneButtonTitle:(NSString *)doneTitle
- info:(NSDictionary *)info;
- - (instancetype)initWithImage:(UIImage *)image
- title:(NSString *)title
- message:(NSString *)message
- delegate:(id <FKAlertViewDelegate>)delegate
- cancelButtonTitle:(NSString *)cancelTitle
- doneButtonTitle:(NSString *)doneTitle
- info:(NSDictionary *)info;
- - (void)showInView:(UIView *)view;
- @end
|