Skip to content

Commit

Permalink
Ammend example code
Browse files Browse the repository at this point in the history
  • Loading branch information
tmdvs committed Feb 4, 2017
1 parent 2d90e0a commit 8bd1021
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TDBadgedCell/ViewController.swift
Expand Up @@ -28,9 +28,9 @@ class ViewController: UITableViewController {
return demoItems.count
}

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> TDBadgedCell {
var cell : TDBadgedCell? = tableView.dequeueReusableCell(withIdentifier:"BadgedCell") as! TDBadgedCell?;
if((cell == nil)) {
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCell(withIdentifier:"BadgedCell") as? TDBadgedCell;
if(cell == nil) {
cell = TDBadgedCell(style: .default, reuseIdentifier: "BadgedCell");
}

Expand Down

0 comments on commit 8bd1021

Please sign in to comment.