TextInputView.h 613 B

12345678910111213141516171819202122232425262728
  1. //
  2. // TextInputView.h
  3. // TheoryNetwork
  4. //
  5. // Created by tederen on 2019/9/27.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef void(^InputBlock)(NSString *);
  11. typedef void(^StarBlock)(NSInteger);
  12. @interface TextInputView : UIView
  13. @property (nonatomic, assign) BOOL star;
  14. @property (nonatomic, copy) InputBlock inputBlock;
  15. @property (nonatomic, copy) StarBlock StarBlock;
  16. - (void)setPlaceText:(NSString *)placeText;
  17. - (void)setViewText:(NSString *)text;
  18. - (void)startAnimationWithY:(CGFloat)y;
  19. - (void)startEditing;
  20. @end
  21. NS_ASSUME_NONNULL_END