by
978 15
0
4
3,198
0
Top 1% !
Popular
Famous
Specified
Popularity: 4309th place
This snippet is Public
No tags for this snippet yet.
LanguageText
LicenseMIT_X11
OSWindows

IOS root view controller exception

Application windows are expected to have a root view controller at the end of application launch
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/204259/IOS-root-view-controller-exception?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
Application windows are expected to have a root view controller at the end of application launch //you have to add this code to your appdelegate didfinishlaunching self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.window.backgroundColor = [UIColor clearColor]; [self.window makeKeyAndVisible]; ViewController *cont = [[ViewController alloc]init]; [self.window setRootViewController:cont];ed.
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus