2011-09-28 49 views
1

不显示在我的.h文件中我有这样的:IBOutlet中的文件的所有者/ IB

@interface { 
UILabel *questionLabel_; 
} 

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

在我.mm文件,我有这样的:

@synthesize questionLabel = questionLabel_; 

当我去到厦门国际银行文件我在File Owner中看不到questionLabel的证据。我也不能通过ctrl拖动到File Owner或First Responder来连接UILabel。

它虽然与我创建的两个UIButtons一起工作。

想法?

+0

接口文件中没有类名? – Rog

+0

在Inspector中请检查课程名称是否设置? –

回答

5

你应该设置你的File's Owner.

开放Utilities -> Identity Inspector -> Custom Class -> Class -> Select your class的适当的类。

之后,您将能够设置网点。