У меня есть следующий код:
UINavigationController localNavigationController = [[[NSBundle mainBundle] loadNibNamed:@"CustomView" owner:self options:nil] objectAtIndex:0];
А вот CustomView.xib
![enter image description here](https://i.stack.imgur.com/hFlK7.png)
Я неправильно подключил?Я получаю следующую ошибку:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIWindow setParentViewController:]: unrecognized selector sent to instance 0x5b74fe0'