清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
/*
* 键盘即将退下
*/
-(void)keyboardWillHide{
//执行动画
[UIView animateWithDuration:_time animations:^{
//曲线
[UIView setAnimationCurve:_curve];
_bottomView.transform=CGAffineTransformIdentity;
}];
}
- (IBAction)switchBtnClick:(id)sender {
[self.textView resignFirstResponder];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.15f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
self.textView.inputView=self.textView.inputView?nil:self.emotionView;
[self.textView becomeFirstResponder];
});
}
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
[self.view endEditing:YES];
}