Stuart Breckenridge Stuart Breckenridge - 1 year ago 121
Swift Question

UITableView - registerClass with Swift

Is anyone else having an issue using the

method with Swift?

It no longer comes in code completion for me (nor can I use it if manually typed) but it is still in the headers...

Code Completion

UITableView headers

Answer Source

It works for me perfectly.

self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "cell")

Exactly as I have it above.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download