Scenario where the error occurred:
Use Swift to customize the cell and then use the cell in OC, because you can name the comparison specification for use and use in OC.
I added @objc (Dsproductcell) before Swift's custom cell
The full version is this:
@objc(Dsproductcell) class Productcell: uitableviewcell {}
Then build the cell on the xib ...
Then this error occurs when OC is used ...
Finally, troubleshoot the cause of this problem:
The class in xib is not prefixed, it is the default is Productcell, need to change: Dsproductcell
After compiling or not, clean a bit, in the compilation, you can ...
So you need to be careful when you use it here.
There is also a need to pay attention to the place, is TableView in registernib, Nibname is the name of the Xib file,
Note that it is the Xib file name, such as Productcell.xib, when the register is:
[self. TableView registernib: [uinib nibwithnibname:@ "Productcell" Bundle :Nil] forcellreuseidentifier:reuseidentifier];
Terminating app due to uncaught exception ' nsunknownkeyexception ', reason:xxxx