MyTextViewから継承するクラスがありUITextViewます。MyViewControllerのサブクラスであるaもありUIViewControllerます。MyViewControllerプロトコルを実装しUITextViewDelegate、のデリゲートとして設定されMyTextViewます。
MyViewControllerUITextViewDelegate(のような)からのデリゲートメソッドのいくつかを実装し- (void)textViewDidChange:(UITextView *)textView、それらはすべて正常に機能します。ただし、または一部または他のスクロールデリゲートメソッドを実装しようとすると、- (void)scrollViewDidScroll:(UIScrollView *)scrollViewそれらは呼び出されません。問題のスクロールメソッドを宣言するからUITextView継承しUIScrollView、UITextViewDelegate準拠しているため、これが機能するはずだと私は理解しています。UIScrollViewDelegate
The strange thing is that if I go into IB and change the class of the text view from MyTextView to UITextView all the delegate methods get called, including the scrolling onces.