I am trying to initialize a subclass of UIViewController that has a corresponding .xib file.
I do it via:
LandingVC()
However, this doesn't initliaze it with the xib file. I have to do it manually via:
LandingVC(nibName: "LandingVC", bundle: nil)
What I am confused about is that in Objective-C, I could do this:
[[LandingVC alloc] init]
and it would automaitcally infer the xib name (if it exists). Why doesn't this work in Swift?
Thanks
[[LandingVC alloc] initWithNibName:@"LandingVC " bundle:nil];is serving the same purpose.Modulename.class name.xib?