Alex Rivera | Logout

Could not insert new outlet connection error

Asked 2012-06-12T11:47:28.737
23

I have created a custom cell for loading into a table. The interface is complete and now I am trying to link the xib and the class.

I have the split screen view open and I try to control drag the item so that Xcode can make the connection for me. When I fill in the name and click connect I get an error:

Could not insert new outlet connection: Could not insert source code into document at URL://localhost/Users/Velox/Projects/CompanyName/ProjectName/ProjectName/HistoryCell.m because it does not contain a class definition for the class named HistoryCell.

I have set the custom class of the xib to HistoryCell.

What am I missing here?

Thanks.

Edit
Report

1 Answer

3

I had the same problem for a viewcontroller which was removed accidantly.I readded files to project but adding Outlets by draging with from xib file gave me the mentioned error.I cleaned the project and restarted XCode and everything worked fine again.

answered 2012-11-25T22:31:56.213

Your Answer