i was just writing my App and suddenly my App Logs Out:
Application windows are expected to have a root view controller at the end of application launch
I thought i could be something i wrote in the last minute so i pressed "cmd + z" to go back! But the log does not disappear. So i looked up for that issue and they said i should add this to my AppDelegate.m:
self.window.rootViewController = self.viewController
I added a property to AppDelegate.h:
@property ViewController *viewController;
That is my AppDelegate.m at this moment:
#import "AppDelegate.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
self.viewController = [[ViewController alloc]init];
self.window.rootViewController = self.viewController;
return YES;
}
@end
Okay with that solution it worked, but not correct. The background Image stayed also the UIView's but all Labels are gone. What should I do?