MGLoginTextBgView.h 857 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // MGLoginTextBgView.h
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2020/6/28.
  6. // Copyright © 2020 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef enum : NSUInteger {
  11. MGREGISTER_VIEW_TYPE_COUNTRY,
  12. MGREGISTER_VIEW_TYPE_PHONE,
  13. MGREGISTER_VIEW_TYPE_CODE,
  14. MGREGISTER_VIEW_TYPE_PASSWORD,
  15. MGREGISTER_VIEW_TYPE_REPASSWORD,
  16. } MGREGISTER_VIEW_TYPE;
  17. @interface MGLoginTextBgView : UIView
  18. @property(nonatomic, strong) UITextField *textField;
  19. @property(nonatomic, strong) UIButton *codeBtn;
  20. @property(nonatomic, assign) MGREGISTER_VIEW_TYPE type;
  21. @property(nonatomic, copy) void (^clickCodeBtnBlock)(BOOL clickRegister);
  22. -(void)setUpTextViewWithPlaceholder:(NSString *)placeholder text:(NSString *)text showRightBtn:(BOOL)showRightBtn type:(MGREGISTER_VIEW_TYPE)type;
  23. @end
  24. NS_ASSUME_NONNULL_END