Created
June 5, 2015 14:43
-
-
Save dodikk/93a81bd8f998266c547b to your computer and use it in GitHub Desktop.
iOS app start
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(BOOL)application:(UIApplication*)application | |
didFinishLaunchingWithOptions:(NSDictionary*)launchOptions | |
{ | |
UIViewController* vc = <поднять из кода/nib/storyboard>; | |
NSLog(@“%@“, self.window); // nil | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // создаём окно, без него - никак | |
self.window.rootViewController = vc; // эта фигня, вроде, во всех канонических примерах есть | |
[self.window addSubview: vc]; // нужен ли “ад subview” ??? | |
[self.window makeKeyAndVisible]; // то, ради чего всё затевалось | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment