Search code examples
iphoneobjective-ccocoa-touchios4

Outlets to UILabel Not Found in XIB even after declaring Outlets in header file


I am developing an iPhone app, and I am the following problem.

I have declared the outlets and properties for UILabel in my header file, but in XIB I am not able to find the outlets for UILabel.

Here is a snippet which shows my header file declaration of IBOutlets for UILabels:

alt text

What should I do?


Solution

  • Make sure your NIB's class is set to FirstViewController by opening it on Interface Builder and pressing CMD+4 then checking that the CLASS field is set appropriately.