title: How to verify if a delegate responds to a selector?
body: <p>I know I need to write:</p>
  
  <pre><code> [delegate respondsToSelector:@selector(myMethod:)]
  </code></pre>
  
  <p>But the compiler is complaining that respondsToSelector is not a method in the protocol, which is correct, However I have seen many sample code use this, how do you do it?</p>