title: UIActionSheet showFromRect Autorotation
body: <p>I'm showing a <code>UIActionSheet</code> like this:</p>
  
  <pre><code>-(void)accessoryPressed:(id)sender{
      //Omitted unnecessary objects
  
      UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:titleString delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:@"Upload", nil];
      //actionSheet.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
      actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
      actionSheet.tag = ((UIButton*)sender).tag;
      [actionSheet showFromRect:[(UIButton*)sender frame] inView:[(UIButton*)sender superview] animated:YES];
  }
  </code></pre>
  
  <p>Where the <code>sender</code> object is a <code>UIButton</code> embedded in a <code>UITableViewCell</code>'s accessory view. </p>
  
  <p>The problem is when the iPad is rotated the actionsheet is not resizing (I don't expect it to actually RESIZE but I want it to be in the correct X,Y) I tried setting the AutoResizingMask to FlexibleLeft and FlexibleTop but it doesn't seem to change. </p>
  
  <p><strong>Does anyone have any idea on how to get the actionSheet to point to the <code>accessoryView</code> after auto-rotation?</strong></p>
  
  <p>Here is what it looks like:</p>
  
  <p>Before Rotation-
  <img src="https://i.stack.imgur.com/8OY3O.png" alt="Before Rotation"></p>
  
  <p>After Rotation - 
  <img src="https://i.stack.imgur.com/HKCrH.png" alt="enter image description here"></p>