Hello,
I have a small iPhone Project with a UITextView on my View, designed in the Interface Builder. In my Viewcontroller is an IBAction Method and I connected the UITextView to that IBAction. I also added in my controller .h the <UITextViewDelegate>
.
In my .m File I added the Method:
- (void)textViewDidChange:(UITextView *)textView{
int count = [textView.text length];
charCount.text = (NSString *)count;
}
But when the App is running and I type something into the textView, the Method textViewDidChange will never be reached. Why is that? I also tried to add textView.delegate = self in the ViewDidLoad Method, but then the App crashes without any Message in the Debugger.
Has anyone a Tip what I´m doing wrong?
Thank you so much
twickl