ios - Storyboard身份检查器中未显示自定义类

标签 ios objective-c cocoa-touch storyboard

我在我的应用程序中创建了一个名为 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 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.

关于ios - Storyboard身份检查器中未显示自定义类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21973474/

相关文章:

ios - 以编程方式请求对媒体库的授权失败

ios - Instagram InstagramCaption 不工作

ios - 从 map 注释标题中删除信息按钮选项

iphone - NSUserDefaults 记住 View

ios - UIPanGestureRecognizer 将事件传递给下面的按钮

ios - 如果我没有进行更改,为什么我需要同步 NSUserDefaults?

objective-c - CCLabelTTF SetString 未更新

ios - 如何在 UITextView 中插入商标符号 (TM)?

iphone - Cocos2d,我忘记了延迟场景的命令是什么

objective-c - iOS:使用@private 隐藏属性不被设置