0

we are working on a tablet app and have the following problem:

We are using popover controllers if the user touches a pin on the map but after orientation change, the popover is misplaced. But we cannot keep a reference because after orientation change, the pins are reloaded.

Did someone already have this problem and found a generic solution for this? I wonder how apple is handling this.

Generally the placement of popovers after orientation change is sometimes acting a bit strange.

thanks in advance

4

1 回答 1

0

一种常见的方法是在旋转后关闭弹出框。不幸的是,你可以做的事情并不多,不需要一些复杂的重新定位逻辑。也许将原点存储为 iVar 并根据新方向计算新坐标。但是,没有通用的解决方案。

于 2013-04-03T15:05:21.667 回答