I upgraded to Xcode 11.1 and trying to compile an older Objective C app that programmatically sets the rootViewController.
How do I work around this error?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
lvc = [[LoginViewController alloc] initWithNibName:nil bundle:nil];
nav = [[UINavigationController alloc] initWithRootViewController:lvc];
nav.navigationBar.barTintColor = [UIColor whiteColor];
self.window.rootViewController = nav;
[self.window addSubview:nav.view];
return YES;
}