UITextView textview应该永远不要调用

问题描述

| 我有这样的UITextView设置:
    UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(10,40,280,240)];
    [textView setBackgroundColor:[UIColor greenColor]];
    [textView setFont:[UIFont fontWithName:@\"MyriadPro-Regular\" size:13]];
    [textView setTextColor:[UIColor blackColor]];
    [textView setText:@\"Your Message....\"];
    [textView setBackgroundColor:[UIColor clearColor]];
    [textView setDelegate:self];
    [textView setReturnKeyType:UIReturnKeyDone];
我期望当用户按下键盘上的“完成”按钮时,将调用此方法(已实现):
- (BOOL)textViewShouldEndEditing:(UITextView *)textView {
    NSLog(@\"called\");
    [textView resignFirstResponder];
    return YES;
}
但是这种方法永远不会被调用。我在做什么错? 谢谢。     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)