@property (nonatomic,assign) id<TTKeyBoardViewDelegate> delegate;
@protocol TTKeyBoardViewDelegate <NSObject>
-(void)keyBoardViewHide:(TTKeyBoardView *)keyBoardView textView:(UITextView *)contentView;
@end
上面是.h文件裏面要聲明的東西@property (nonatomic,assign) id<TTKeyBoardViewDelegate> delegate;
@protocol TTKeyBoardViewDelegate <NSObject>
-(void)keyBoardViewHide:(TTKeyBoardView *)keyBoardView textView:(UITextView *)contentView;
@end
上面是.h文件裏面要聲明的東西