我在我的应用程序中创建了一个名为EmpresasTableViewController的新类,在故事板中我将CategoriasViewController复制到EmpresasTableViewController,我只是想在故事板中将类EmpresasTableViewController分配给Empr
创建类后没有错误,但为什么它没有在Custom Class?下的Storyboard Identity Inspector中显示为类,显示所有其他视图控制器.
首先,需要保存所有文件.你可以尝试的是:
选项1.关闭并重新打开项目的Xcode.
选项2.清理项目并重新构建.
选项3.强制Xcode再次对项目建立索引:
Open the
Organizer
(Window > Organizer) and select theProjects
mode.
Select your project in the left-hand view and then click theDelete...
button for the project’sDerived Data
.This will delete the code sense index for the project and force
Xcode
to rebuild the index, which may fix the problem.