当前位置 : 主页 > 手机开发 > ios >

ios – 故事板身份检查器中未显示自定义类

来源:互联网 收集:自由互联 发布时间:2021-06-11
我在我的应用程序中创建了一个名为EmpresasTableViewController的新类,在故事板中我将CategoriasViewController复制到EmpresasTableViewController,我只是想在故事板中将类EmpresasTableViewController分配给Empr
我在我的应用程序中创建了一个名为EmpresasTableViewController的新类,在故事板中我将CategoriasViewController复制到EmpresasTableViewController,我只是想在故事板中将类EmpresasTableViewController分配给EmpresasTableViewController,但名称EmpresasViewController没有出现在Identity Inspector中.

创建类后没有错误,但为什么它没有在Custom Class?下的Storyboard Identity Inspector中显示为类,显示所有其他视图控制器.

首先,需要保存所有文件.

你可以尝试的是:

选项1.关闭并重新打开项目的Xcode.

选项2.清理项目并重新构建.

选项3.强制Xcode再次对项目建立索引:

Open the Organizer (Window > Organizer) and select the Projects mode.
Select your project in the left-hand view and then click the Delete...
button for the project’s Derived Data.

This will delete the code sense index for the project and force Xcode to rebuild the index, which may fix the problem.

网友评论