酷店

KDPScreenBtnView.h 782B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // KDPScreenBtnView.h
  3. // KuDianProject
  4. //
  5. // Created by admin on 2019/7/8.
  6. // Copyright © 2019 KDP. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @protocol KDPScreenBtnViewDelegate<NSObject>
  11. - (void)textFieldValueChanged:(UITextField *)textfield;
  12. - (void)textFieldDidEndEditing:(UITextField *)textField;
  13. - (void)textFieldDidBeginEditing:(UITextField *)textfield;
  14. @end
  15. @interface KDPScreenBtnView : UIView
  16. // 是否可以编辑
  17. @property (nonatomic, assign) BOOL isEditing;
  18. // 默认文字
  19. @property (nonatomic, copy) NSString *placeHolderText;
  20. @property (nonatomic, copy) NSString *text;
  21. @property (nonatomic, strong) UIColor *textColor;
  22. @property (nonatomic, weak) id <KDPScreenBtnViewDelegate> delegate;
  23. @end
  24. NS_ASSUME_NONNULL_END