Parth Bhatt
Parth Bhatt

Reputation: 19469

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?

Upvotes: 1

Views: 359

Answers (3)

Oh Danny Boy
Oh Danny Boy

Reputation: 4887

Lately, I have been having this problem when I open projects in the "Recent Projects" list when first launching xcode. Opening .xcodeproj file itself restores the links for me.

Upvotes: 0

Rog
Rog

Reputation: 18670

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.

Upvotes: 1

Luke Mcneice
Luke Mcneice

Reputation: 2720

Put an IBOutlet directive on your property.

@property(nonatomic,retain) IBOutlet UILabel * test;

Upvotes: 0

Related Questions