How to obtain the container class of an Actionsheet?
<p>I am a green hand of iPhone development, and I just get confused about a method UIActionsheet，which is the "showInView". So what is the relation between the view who called the actionsheet and the actionsheet it self.<br>
  Actually, I wannt to customize the button in an actionsheet, so I create a class for it and overide the methods, and I want really call the methods in the superview, anybody got a solution?</p>

<p>Thank you!<br>
（btw， I tried the following code, but it doesn't work.）</p>

<pre><code>- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated

{........
   else if (buttonIndex==sharers.count+1)
    {

     AddCommentViewController *parentController=(AddCommentViewController *)[self.superview nextResponder];
}
</code></pre>
