Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

show mainviewcontroller from another view #10

Open
ghost opened this issue Apr 24, 2015 · 0 comments
Open

show mainviewcontroller from another view #10

ghost opened this issue Apr 24, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2015

how can I show mainviewcontroller from another view, on my existing project?
i dont want to create the view from the delegate with this code.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
MainViewController *viewController = [[MainViewController alloc] init];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController];
navController.toolbarHidden = NO;
[[self window] setRootViewController:navController];
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants