UINavigationController + shouldAutoRotate + keine Unterklassen

Habe ich ein Navigations-driven app. Ich brauche diese app zu drehen. Der UINavigationController ist der root-controller/view in das Fenster. Ich weiß (und erlebt haben, warum) es ist ein no-no, um eine Unterklasse UINavigationController. Ich weiß alles, was ich zu tun ist, einfügen:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

in der UINavigationController und es dreht einwandfrei.

Also meine Frage ist: wie aktiviere ich die rotation auf der root-view-controller (UINavigationController) OHNE subclassing es?

  • 1) Bitte, bitte Mach es nicht auf den Kopf stellen, wenn für iPhone. 2) Antwort: hack Cocoa-Touch, neu kompilieren und staticly-link. 3) Warum nicht Erben es?
InformationsquelleAutor ACBurk | 2010-05-05
Schreibe einen Kommentar