Popover mit ModalPresentationStyle ist in iOS 7 iPad nicht zentriert

Ich habe ein Problem mit iOS 7, das anscheinend ein Fehler ist, oder ich tue einfach etwas nicht richtig. Ich habe modalViewController, der als Popover auf dem iPad mit ModalPresentationStyle angezeigt wird. Und es ist nicht standardgröße, benutzerdefinierte größe. Hier ist der Code:

myViewController *myVC = [[myViewController alloc] init];
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:myVC];
[nav setModalPresentationStyle:UIModalPresentationFormSheet];
[nav setModalTransitionStyle: UIModalTransitionStyleFlipHorizontal];
[self presentViewController:nav animated:YES completion:nil];
nav.view.superview.bounds = CGRectMake(0, 0, 320, 465);

In iOS 6 funktioniert alles einwandfrei, in iOS 7 ist es jedoch nicht zentriert. Aber wenn ich ModalTransitionStyle auf UIModalTransitionStyleCrossDissolve setze, funktioniert es einwandfrei. Aber nur in diesem Modus. Vielleicht ist auch jemand darauf gestoßen und weiß, wie man das behebt? Ich bin kein großer Fan von Überblendungseffekten. Vielen Dank.

Antworten auf die Frage(6)

Ihre Antwort auf die Frage