0

I have an UIViewController subclass that seems to load a Nib for its view resulting in a NSUnknownKeyException.

There is no explicit call to init(nibName: nibNameOrNil, bundle: nibBundleOrNil) or loadNibNamed() in my code.

And I don't get what is happening.

edit : here is the constructor I'm calling.

convenience init(overviewController:OverviewViewController) {
    self.init()
}
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134

1 Answers1

0

I found out that my UIViewController subclass was attempting to load a nib by itself based on its name !

I had a nib file that had the same name as my UIViewController subclass.

Just renaming the nib fixed my problem.

Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134