UIViewController nicht automatisch drehen

Als der Titel sagt. Meine UIViewController nicht drehen, egal was. Wenn es lädt shouldAutorotateToInterfaceOrientation aufgerufen wird, aber danach klappt es auch.

UPDATE 1:

Es ist eine wirklich, wirklich seltsame problem. Zumindest für mich. Und ich ll versuchen, alles zu erklären.

Es ist eine navigation app. Jeder controller hat

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

Xcontroller ist ein Kind des Acontroller und es nicht automatisch drehen. Wenn Xcontroller ein Kind Bcontroller dann wird es Anz. autom.. So etwas ist falsch mit Acontroller. Aber Acontroller ist identisch (mit Ausnahme der Daten) zu Bcontroller.

Was Falsch?

UPDATE 2:

Habe ich beschlossen, neu zu erstellen Acontroller. Und es hat funktioniert.Ich glaube, ich war etwas fehlt, doof.

  • Wie implementieren Sie die -shouldAutorotateToInterfaceOrientation:?
  • - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ return YES; } Wenn es das ist was du meinst :).
InformationsquelleAutor looneygrc | 2010-03-10
Schreibe einen Kommentar