Używam tego kodupresentViewController nie wspiera orientację w iOS 6
if ([self respondsToSelector:@selector(presentViewController:animated:completion:)])
{
[self presentViewController:navigationControllerCustom animated:YES completion:nil];
}
else
{
[self presentModalViewController:navigationControllerCustom animated:YES];
}
Moja aplikacja ma dwa orientacji pionowej i Portret góry nogami. Ten kod działa dobrze z iOS 5.1, ale orientacja nie działa na iOS 6
Dodałem także ten kod na moim navigationControllerCustom
klasy
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);
}
-(NSUInteger)supportedInterfaceOrientations
{
return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}
Proszę mi pomóc rozwiązać ten problem.
Z góry dziękuję.
Mam ten sam problem w moich aplikacjach skompilowałem na iOS 6; wszystkie orientacje działają z wyjątkiem UInterfaceOrientationPortraitUpsideDown; to dziwne. – MrJre
@MrJre Każde rozwiązanie na tym samym poziomie jest naprawdę dziwne. –