No Description

FKAlertView.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // FKAlertView.h
  3. // FirstLink
  4. //
  5. // Created by jack on 16/3/14.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSUInteger, kAlertViewStyle) {
  10. kAlertViewStyleDefault = 0,
  11. kAlertViewStyleDone,
  12. };
  13. @class FKAlertView;
  14. @protocol FKAlertViewDelegate <NSObject>
  15. - (void)fk_alertView:(FKAlertView *)alertView
  16. doneWithConfirm:(BOOL)confirm
  17. info:(NSDictionary *)info;
  18. @end
  19. @interface FKAlertView : UIView
  20. - (instancetype)initWithMessage:(NSString *)message
  21. delegate:(id <FKAlertViewDelegate>)delegate
  22. cancelButtonTitle:(NSString *)cancelTitle
  23. doneButtonTitle:(NSString *)doneTitle
  24. info:(NSDictionary *)info;
  25. - (instancetype)initWithImage:(UIImage *)image
  26. title:(NSString *)title
  27. message:(NSString *)message
  28. delegate:(id <FKAlertViewDelegate>)delegate
  29. cancelButtonTitle:(NSString *)cancelTitle
  30. doneButtonTitle:(NSString *)doneTitle
  31. info:(NSDictionary *)info;
  32. - (void)showInView:(UIView *)view;
  33. @end