Unterstützung ich diesen CodepresentViewController nicht Orientierung in iOS 6
if ([self respondsToSelector:@selector(presentViewController:animated:completion:)])
{
[self presentViewController:navigationControllerCustom animated:YES completion:nil];
}
else
{
[self presentModalViewController:navigationControllerCustom animated:YES];
}
Meine Anwendung hat zwei Orientierung Portrait und Portrait des Kopf verwenden. Dieser Code funktioniert gut mit iOS 5.1, aber Orientierung funktioniert nicht auf iOS 6
Ich habe diesen Code auch hinzugefügt meine navigationControllerCustom
Klasse
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
}
-(NSUInteger)supportedInterfaceOrientations
{
return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}
Bitte helfen Sie mir, dieses Problem zu lösen.
Vielen Dank im Voraus.
Ich habe das gleiche Problem in meinen Apps, die ich für iOS 6 kompiliert habe; Alle Orientierungen funktionieren mit Ausnahme von UIInterfaceOrientationPortraitUpsideDown; es ist komisch. – MrJre
@MrJre Jede Lösung auf das gleiche wie das ist wirklich seltsam. –