We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d90e0a commit 8bd1021Copy full SHA for 8bd1021
TDBadgedCell/ViewController.swift
@@ -28,9 +28,9 @@ class ViewController: UITableViewController {
28
return demoItems.count
29
}
30
31
- override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> TDBadgedCell {
32
- var cell : TDBadgedCell? = tableView.dequeueReusableCell(withIdentifier:"BadgedCell") as! TDBadgedCell?;
33
- if((cell == nil)) {
+ override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
+ var cell = tableView.dequeueReusableCell(withIdentifier:"BadgedCell") as? TDBadgedCell;
+ if(cell == nil) {
34
cell = TDBadgedCell(style: .default, reuseIdentifier: "BadgedCell");
35
36
0 commit comments