我在我的应用程序中创建了一个名为 EmpresasTableViewController
的新类,并且在 Storyboard中我将 CategoriasViewController
复制到 EmpresasTableViewController,我只想分配类 EmpresasTableViewController
到 Storyboard 中的 EmpresasTableViewController
,但是名称 EmpresasViewController
没有出现在 Identity Inspector
中。
创建类后没有报错,但是为什么在Custom Class
下的storyboard Identity Inspector
中没有显示为一个类,其他的view controller都是显示。
最佳答案
首先,您需要保存所有文件。
您可以尝试的是:
选项 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.
关于ios - Storyboard身份检查器中未显示自定义类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21973474/