次のようにマップ ビューにポップオーバーを表示します。
しかし、デバイスを回転させると、次のように表示されます:
ご覧のとおり、注釈のすぐ横に表示されるのではなく、注釈を覆っています。
私のコードは次のとおりです。
CGPoint annotationPoint = [mapView convertCoordinate:aView.annotation.coordinate toPointToView:mapView];
float boxDY=annotationPoint.y;
float boxDX=annotationPoint.x;
CGRect box = CGRectMake(boxDX,boxDY,5,5);
UILabel *displayLabel = [[UILabel alloc] initWithFrame:box];
[popView presentPopoverFromRect:displayLabel.frame inView:mapView permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[displayLabel release];
この問題を解決するのを手伝ってください。