[CommentTextField showWithComplelateBlcok:^(CommentTextField *view) {
NSLog(@"str = %@",view.textField.text);
}];
[CommentTextField showWithUsername:@"小明" complelateBlcok:^(CommentTextField *view) {
NSLog(@"str = %@",view.textField.text);
}];
[CommentTextField showWithScrollResign:NO alloweMoveInView:tableView flagView:clicedView complelateBlcok:^(CommentTextField *view) {
}];
要在UIScrollView上滑动时隐藏控件,需要在UIScrollView的willDrag代理方法中调用CommentTextField的hide方法