So, I saw this question: How do you enable the "delegate" UITextView output to a class that implements the UITextViewDelegate protocol?
My problem is similar to what booboo describes in the second answer (and not the one marked as answer.)
I have a MyViewController that implements a UITextViewDelegate. In the interface builder for nib inside the view, I selected TextView and assigned it to delegate to the file owner (which is MyViewController.)
MyViewController implemented
- (void)textViewDidBeginEditing:(UITextView *)textView { NSLog(@"TextView EDIT %@",textView); }
Every time I test my application, as soon as I click on TextView, I get EXC_BAD_ACCESS crash. If I delete the delegate link in IB, then the keyboard will appear normally.
I also tried creating an IBOutlet UITextView for text view inside MyViewController and linking a TextView with this IBOutlet in File Owner. In viewDidLoad, I assign:
myDescriptionTextField.delegate = self;
But this also leads to the same release of EXC_BAD_ACCESS as soon as I click on TextView.
Inside XCODE at the top, when it resets the stack trace (I think this is what it is?), Where it crashes, it says:
objc_msgSend ??
-[UIResponder becomeFirstResponder] -[UITextView becomeFirstResponder] -[UITextInteractionAssistant setFirstResponderIfNecessary]
... etc.
Does it help? Am I so lost in this matter? Everything seems to be correctly connected.