2010-09-12 54 views
0

我有這個在我的.h控制器看不到我的標籤出口

@interface helloViewController : UIViewController { 
    IBOutlet UIlabel *label; 

} 

-(IBAction)hello:sender(id); 

@end 

我打開相應的.xib文件,我可以拖放按鈕-Hello的文件關聯老闆,但試圖關聯標籤不起作用:它暗示我聯想 - 查看出口,而不是爲什麼?

+1

你試過'UILabel'大寫L,而不是'UIlabel'? – kennytm 2010-09-12 20:46:13

+0

謝謝,愚蠢的錯誤抱歉,我絕對是初學者:) – user310291 2010-09-12 21:28:20

回答

1

你的方法聲明應該是:

-(IBAction)hello:(id)sender; 

此外,需要的UILabel一個大寫L

IBOutlet UILabel *label