textview 不响应事件的原因。没有给控件设置代理
设置代理:
textView.delegate = self;
_____________________
http://www.iphonedevsdk.com/forum/iphone-sdk-development/4134-handle-keyboard-done-press-text-field.html
点击done 关闭键盘、
@interface MyViewController : UIViewController <UITextFieldDelegate>
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField { [theTextField resignFirstResponder]; return YES; }