0
votes

I have a view controller V which is part of a story board. On its viewDidLoad method it attempts to load a few views from a NIB (not a storyboard). The idea is to "assemble" some of the view using these "subviews".

However, when I try to load a view like this:

NSArray *bundle = [[NSBundle mainBundle] loadNibNamed:@"x"
                                                owner:self options:nil];

I'm getting an exception saying 'this class is not key value coding-compliant for the key yyy.'

This is because the view in the NIB has a custom view controller, which has an outlet to a component in this view, which is connected in the NIB properly.

What am I doing wrong here?

1

1 Answers

0
votes

right click on your fileOwner viewController in interface builder and then delete yyy outlet, you have an outlet connection, which is not existed or deleted
Update screenShote added
xoced interface builder

Look at this screenshot the button has 2 outlets, but yyyy is not existed in the viewController. you should delete this outlet
enter image description here