title: how to pass data to the parent class in ios?
body: <p>I am a beginner in <strong>objective-C</strong>. So please forgive if my question is silly.</p>
  
  <p>In my <code>root view controller A</code>, I added a <code>subview</code> B.
  In b there will be another <code>subview C</code>. C contains another <code>subview D</code>.
  How can I call a method in <code>A from D</code>.
  I know that we can use <strong>delegates</strong> for passing data to the <code>parent controller</code>. 
  But my question is that do i need to create delegate which calls <code>C from D</code> and another one for call <code>B from C</code> and so on? 
  Or is there any method which directly calls a method in <code>A from D</code>? </p>