0

How to write [UITableViewCell class] in Swift?
In Swift, I tried using UITableViewCell.class(), but it's crossed out. I'm wondering what is the equivalent method to use. I'm trying to invoke the self.tableView.registerClass(UITableViewCell.class(), forCellReuseIdentifier: defaultCellIdentifier) method in the first place.

0

1 Answer 1

2

Instead of using UITableViewCell.class(), try UITableViewCell.self in Swift.

Sign up to request clarification or add additional context in comments.

1 Comment

What array? registerClass:forCellReuseIdentifier: does not ask for an array anywhere, nor does its Swift equivalent.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.