Interface Builder outlet nil

After I have created an outlet to a control with Interface Builder, the control has a nil value. Anyone else have a problem with this? What is the cause? What is the fix?

Replies

Hard to say without seeing any code to verify that the outlet is declared and used correctly.


Perhaps you added the control to a size class that is not applicable at run time. You could use the view hierarchy debugger to ensure the view you're talking about is actually there.

I figure out that I tried to use the references before they had been initialized.