在5.0上你可能在使用上发现:is expected to have a master view controller before its used!的错误
可能的原因是顺序的问题
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
...
self.splitViewController = [[UISplitViewController alloc] init];
self.splitViewController.delegate = detailViewController;
self.splitViewController.viewControllers = [NSArray arrayWithObjects:masterNavigationController,
detailNavigationController, nil];
...
...
}