title: UIActionsheet not dismissing
body: <p>I have 3 buttons in my UIActionsheet.
  I want one cancel button at the bottom of it.</p>
  
  <p>I also want that all of the buttons should be able to dismiss UIActionsheet.</p>
  
  <p>Currently, none of them does the job for me.</p>
  
  <p>Here is how I display it:</p>
  
  <pre><code>UIActionSheet *actionSheet = nil;
  NSArray *otherButtons = nil;
  
  
  otherButtons = [NSArray arrayWithObjects:@"Button1", @"Button2", @"Button3",
                       nil];       
  
  actionSheet = [[UIActionSheet alloc] initWithTitle:title
                                            delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil, nil];
  
  
  for( NSString *btntitle in otherButtons)
  {
      [actionSheet addButtonWithTitle:btntitle];
  }    
  
  [actionSheet addButtonWithTitle:@"Cancel"];
  actionSheet.cancelButtonIndex = actionSheet.numberOfButtons - 1;
  
  actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
  [actionSheet showInView:self.view];
  </code></pre>
  
  <p>In my delegate, I do this:</p>
  
  <pre><code>- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
  {
        //some code
        [actionSheet dismissWithClickedButtonIndex:buttonIndex animated:YES];
  }
  </code></pre>
  
  <p>But it does not dismiss. I do not want to change my design and position of any buttons. 
  What should I do?</p>