title: Accessing parent view of current view - iOS
body: <p>When I want to access the parent <code>UIView</code> of current <code>UIView</code> I declare object of parent <code>UIView</code> in current <code>UIView</code> and access it by assigning the parent <code>UIView</code> object to current view's object property. </p>
  
  <p>Is there any way to get rid of this and directly call the parent view's methods or properties?</p>
  
  <p>I also tried <code>(parentView *) self.view.superview</code> but didn't help.</p>
  
  <p>It gives error while calling function for this object as </p>
  
  <pre><code>[UIVIew unrecognized selector......
  </code></pre>