0

I have a UIActionSheet which appears as a UIPopoverController on the iPad. I am trying to show it from a UIButton by using:

[self.exampleActionSheet showFromRect:self.exampleButton.frame inView:self.view animated:YES];

What I am trying to do now is to reposition this UIActionSheet on orientation change. But when I use the above code to reposition after the screen has rotated, it doesn't do so. Can anyone tell me how to do this properly?

4

1 回答 1

5

更好的工作流程是:

  1. 发生轮换时关闭操作表
  2. 计算应该从哪里呈现它的新矩形
  3. 从新矩形展示一个新的操作表
于 2013-10-29T14:50:23.280 回答