Cannot use UITableView registerClass(_, forCellReuseIdentifier: ) to deregister a UITableViewCell

I can register a UITableViewCell with

table.registerClass(SignEntryCell.self, forCellReuseIdentifier: "SignEntry")

The documentation says I should be able to deregister

If you previously registered a class or nib file with the same reuse identifier, the class you specify in the cellClass parameter replaces the old entry. You may specify nil for cellClass if you want to unregister the class from the specified reuse identifier.

But using

table.registerClass(nil, forCellReuseIdentifier: "SignEntry")

gives me the following compiler error message

Cannot invoke ‘registerClass’ with an argument list of type ‘(nil, forCellReuseIdentifier: String)’

Does anyone know how to deregister a cell from a table?

Source: ios

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.