Using UITextViewDelegate in subclass and in UIViewController
<p>I am subclassing UITextView and implementing some delegate methods in subclass like <code>textViewDidChangeSelection</code> but I also need to get notify in View Controller for UITextView delegates.
So if I create object of subclass and set textview delegate in view controller then delegates method is notified only in view controller not inside subclass. I need to notify both class. And language I am using is swift 2</p>

<p>I tried to inherit UITextViewDelegate in subclass delegate:</p>

<pre><code>@objc protocol CustomTextViewDelegate:UITextViewDelegate {

    func customTextViewDidChangeSize(chatTextView: CustomTextView)

}
</code></pre>

<p>and then in VC:</p>

<pre><code>let customTV = CustomTextView()
customTV.customTextViewDelegate = self
</code></pre>

<p>but any textview delegate method is not getting called.</p>