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.
So, it turns out that I was being a fool. You can’t quite do it like this with Xcode. If you create the properties manually in the header file, then synthesise them in the class file, you can then link by doing the following:
Open the xib file
Right click on the cell in the “Objects” panel
Click and drag from the options here to the objects on the xib.
That’s all there was to it.