In iOS 8 generiert das Setzen des preferredDisplayMode auf einem UISplitViewController auf PrimaryOverlay die folgende Warnung:
"Unausgeglichene Aufrufe zum Beginnen/Beenden von Navigationsübergängen"
Es gibt kein Problem, wenn ich preferredDisplayMode auf AllVisible setze oder überhaupt nicht setze. Das Problem tritt bei allen iPads und iPhones im Simulator auf, die ich ausprobiert habe. Das Problem tritt auf, egal ob die App im Hoch- oder Querformat startet.
Hier ist ein sehr einfacher Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UITableViewController *tableViewController = [[UITableViewController alloc] init];
UIViewController *viewController = [[UIViewController alloc] init];
UINavigationController *masterNavController = [[UINavigationController alloc] initWithRootViewController:tableViewController];
UINavigationController *detailNavController = [[UINavigationController alloc] initWithRootViewController:viewController];
UISplitViewController *svc = [[UISplitViewController alloc] init];
[svc addChildViewController:masterNavController];
[svc addChildViewController:detailNavController];
//svc.preferredDisplayMode = UISplitViewControllerDisplayModeAllVisible;
svc.preferredDisplayMode = UISplitViewControllerDisplayModePrimaryOverlay;
self.window.rootViewController = svc;
[self.window makeKeyAndVisible];
return YES;
}