【发布时间】:2013-12-19 05:39:20
【问题描述】:
我在 Xcode 项目中的多个位置更改了我的 .h 文件的 prefix header 名称,然后将标题改回原来的。看来我弄乱了我的来源或其他东西。当尝试从 UIButton 控制单击拖动到我的 .h 文件以创建 IBAction 时,
我收到以下错误:
Could not insert new action connection: Could not insert source code into document at
URL file://localhost/Users/Myuser/file/filename/projectname/SGLoginHomeViewController.m
because it does not contain a class interface for the class named SGLoginHomeViewController
我再次尝试在类文件 SGLoginHomeViewController.h 中创建一个新的 IBAction
我认为我需要删除引用然后将它们添加回来,但我该怎么做呢?
【问题讨论】:
标签: objective-c ios7 xcode5