Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表格视图,其中长按一行会触发操作表 - 选项。当我按行上的任意位置(想想 iPad 屏幕)时,操作表在横向/纵向模式下正确显示。但是,当我在横向模式下(靠近显示指示器)长按行的最右侧并更改为纵向模式时,操作表将显示如下所示。
它UIActionSheet不会将自己固定在任何东西上,因此当屏幕旋转时,它会保持原位,而其他所有东西都在移动。您想在willAnimateRotationToInterfaceOrientation:或中重新显示操作表didAnimateRotationFromInterfaceOrientation。
UIActionSheet
willAnimateRotationToInterfaceOrientation:
didAnimateRotationFromInterfaceOrientation