AppDelegate动态加载StoryBoard

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions

{

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

   UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:[NSBundlemainBundle]];

    self.window.rootViewController=[storyboard instantiateInitialViewController];

    [self.window makeKeyAndVisible];

    return YES;

}

没有更多推荐了,返回首页