presentViewController nicht unterstützt Ausrichtung in iOS 6

Ich bin mit diesem code

if ([self respondsToSelector:@selector(presentViewController:animated:completion:)])
    {
        [self presentViewController:navigationControllerCustom animated:YES completion:nil];
    }
    else
    {
        [self presentModalViewController:navigationControllerCustom animated:YES];
    }

Meine Anwendung hat zwei Ausrichtung Hochformat und Querformat auf den Kopf. Dieser code funktioniert auch mit iOS 5.1, aber die Orientierung funktioniert nicht auf iOS 6

Außerdem habe ich diesen code auf meine navigationControllerCustom Klasse

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
}

-(NSUInteger)supportedInterfaceOrientations
{
    return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}

Mir bitte helfen, dieses Problem zu lösen.

Vielen Dank im Voraus.

InformationsquelleAutor der Frage P.J | 2012-09-24

Schreibe einen Kommentar