TextInputView.h 448 B

12345678910111213141516171819202122232425
  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. @interface TextInputView : UIView
  12. @property (nonatomic, copy) InputBlock inputBlock;
  13. - (void)setPlaceText:(NSString *)placeText;
  14. - (void)startAnimationWithY:(CGFloat)y;
  15. - (void)startEditing;
  16. @end
  17. NS_ASSUME_NONNULL_END