no

UITabBarController error - loaded the "YourView" nib but the view outlet was not set

Working on a simple UITabBarController I encountered the above error "nib but the view outlet was not set". This usually happens...

Working on a simple UITabBarController I encountered the above error "nib but the view outlet was not set".

This usually happens when you create a new nib file and forgot to change the File's Owner class in the interface builder.

So for example we have a UITabBarController and add 2 views to it. FirstView and SecondView. You will notice that the default class is NSOBject. See attached.

What you need to do is to change the class from NSOBject to UIViewController then link the File's Owner view outlet into the View object. See attached.

Click save in interface builder go back to xcode and run. See if you still have the error.

Post a Comment Default Comments

item