Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom class not shown in the storyboard identity inspector

I created in my app a new class named EmpresasTableViewController, and in the storyboard I copied CategoriasViewController to EmpresasTableViewController, I just want to assign the class EmpresasTableViewController to EmpresasTableViewController in the storyboard, but the name EmpresasViewController doesn't appear in the Identity Inspector.

There are no errors after creating the class, but why is it not shown as a class in the storyboard Identity Inspector under Custom Class?, all other view controllers are shown.

like image 908
mvasco Avatar asked Feb 23 '14 19:02

mvasco


1 Answers

Firstly, all your files needs to be saved.

What you can try is:

Option 1. Close and reopen Xcode with your project.

Option 2. Clean your project and build it again.

Option 3. Force Xcode to do the indexing of your project once again:

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.

like image 161
Rafa de King Avatar answered Oct 09 '22 07:10

Rafa de King