Tag: root

MGSplitViewController不作为根

我需要使用MGSplitViewController,因为它能够以纵向模式显示主视图控制器。 但是,在显示我的分割视图之前,我需要显示一个login屏幕。 不幸的是,我无法在启动时全屏popup视图控制器,因为我调用了其他一些方法! 下面是我的应用程序委托和详细视图控制器代码。 请注意,select器方法阻止我打开一个模式! AppDelegate.h是使用MGSplitViewControllerAppDelegate.h构造的 // RandomStringAppDelegate.m – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after app launch. // Set the split view controller as the window's root view controller and display. //self.window.rootViewController = self.splitViewController; // Add the split view controller's view to the window and display. NSUserDefaults *prefs = [NSUserDefaults […]