When debugging, viewDidLoad of LoginViewController is called, but the screen is black screen. I really don't know why..
@interface AppDelegate ()
@property (nonatomic, strong) AppCoordinator *appCoordinator;
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame: UIScreen.mainScreen.bounds];
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
LoginViewController *vc = [sb instantiateViewControllerWithIdentifier:@"LoginView"];
//UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController: vc];
self.window.rootViewController = vc;
[self.window makeKeyAndVisible];
return YES;
}
LoginViewController.m
#import "LoginViewController.h"
@implementation LoginViewController
- (void)viewDidLoad {
NSLog(@"LoginViewController viewDidLoad");
[super viewDidLoad];
self.view.backgroundColor = [UIColor redColor];
}
@end