JKMessageBoxController.h 795 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // JKAlertController.h
  3. // Lock
  4. //
  5. // Created by Jack on 2016/10/15.
  6. // Copyright © 2016年 mini1. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef BOOL(^textChangeHandler)(UITextField *textField,NSRange changeRange,NSString*string);
  10. typedef void(^inputHandler)(NSString *text);
  11. @interface JKMessageBoxController : UIViewController
  12. @property (nonatomic,copy) textChangeHandler changeHandler;
  13. @property (nonatomic,copy) inputHandler textHandler;
  14. @property (nonatomic,copy) NSString *yesButtonTitle;
  15. @property (nonatomic,strong) UITextField *textFiled;///<default secureTextEntry = Yes
  16. + (instancetype)messageBoxControllerWithTip:(NSString *)msg;
  17. + (instancetype)messageBoxControllerWithTip:(NSString *)msg ContentSize:(CGSize)size;
  18. - (void)warning:(NSString *)msg;
  19. @end