Search code examples
objective-ciosuiviewcontrollerxib

"Loaded the controller nib but the view outlet was not set."


I can't figure what's wrong : I'm trying to get to another view with a button's UIAction.

My view controller contains a UIScrollView IBOutlet. I created a .xib file for this view controller.

In this .xib I customized the class as my SettingsController class.

But now, with this configuration (I have scrollView, searchDisplayController and view as my outlets) I don't know how I must connect this to get it work. Please help !

Thanks a lot for your advices


Solution

  • As i can see from you post, you have not connected some properties with objects in you nib file.

    Open you second .xib in Interface Builder. Check if UIView is connected to your File's owner. If not, just drag with right mouse button (or cmd+left mouse button) from File's owner to UIView and connect to view property. (May be you should drag in another direction, from UIView to File's owner, i cannot remember now)