Try setting the delegate of your UITextView. You need to connect the output to the delegate in Interface Builder or if you create it programmatically, you can:
yourTextView.delegate = self;
to set the delegate to the controller that you insert into your element.
source share