In my Swift code, I am trying to instantiate an Objective-C view controller like below, however the viewDidLoad
method is not being called.
let detailMessageVC = DetailMessageViewController(nibName:nil, bundle:nil)
If I instantiate the same viewcontroller from Objective-C code like this it does get called. There is no xib for the view controller.
self.detailMVC = [[DetailMessageViewController alloc] init];
Does anyone know why this is happening? I would like to have the same behaviour when calling from Swift as I rely on the viewDidLoad
to perform various initialisation. This is with Xcode 6.3.2