Se il mio iPad è in modalità Orizzontale e viene visualizzato PresentodalViewController, la vista si trasforma automaticamente in modalità verticale. Qualche soluzione?problema con presentModalViewController
UIViewController * start = [[UIViewController alloc]initWithNibName:@"SecondView" bundle:nil];
start.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
start.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentModalViewController:start animated:YES];
In SecondView ho già aggiunto:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
questo è successo anche a me - non l'ho ancora capito, quindi spero che qualcuno risponda :) – Conceptdev
La soluzione è molto semplice: accedi a Interface Builder e collega correttamente ViewController alla tua classe. Questo ha funzionato per me –