Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 在Interface builder中拖动文件所有者时,无法看到我的标签出口_Iphone_Ios4 - Fatal编程技术网

Iphone 在Interface builder中拖动文件所有者时,无法看到我的标签出口

Iphone 在Interface builder中拖动文件所有者时,无法看到我的标签出口,iphone,ios4,Iphone,Ios4,我在我的.h控制器里有这个 @interface helloViewController : UIViewController { IBOutlet UIlabel *label; } -(IBAction)hello:sender(id); @end 我打开了相应的.xib文件,我可以拖动并关联按钮-向文件所有者打招呼,但尝试关联标签不起作用:它建议我关联-查看出口,而不是为什么 您的方法声明应该是: -(IBAction)hello:(id)sender; 此外,UILab

我在我的.h控制器里有这个

@interface helloViewController : UIViewController {
    IBOutlet UIlabel *label;

}

-(IBAction)hello:sender(id);

@end

我打开了相应的.xib文件,我可以拖动并关联按钮-向文件所有者打招呼,但尝试关联标签不起作用:它建议我关联-查看出口,而不是为什么

您的方法声明应该是:

-(IBAction)hello:(id)sender;
此外,UILabel需要大写字母L

IBOutlet UILabel *label

你试过用大写字母L代替
UILabel
UILabel
吗?谢谢,愚蠢的错误,对不起,我是个初学者:)