Skip to content

Instantly share code, notes, and snippets.

@feighter09
Last active March 28, 2017 06:00
Show Gist options
  • Select an option

  • Save feighter09/16e51b63b7899c75f9755d0476d9f679 to your computer and use it in GitHub Desktop.

Select an option

Save feighter09/16e51b63b7899c75f9755d0476d9f679 to your computer and use it in GitHub Desktop.

Revisions

  1. feighter09 revised this gist Mar 28, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions UglyDequeueCell.swift
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,2 @@
    tableView.register(StoryCell.self, forCellReuseIdentifier: "StoryCell")
    let cell = tableView.dequeueReusableCell(withIdentifier: "StoryCell", for: indexPath) as! StoryCell

    let cell = tableView.dequeueReusableCell(withIdentifier: "StoryCell", for: indexPath) as? StoryCell
  2. feighter09 revised this gist Mar 28, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion UglyDequeueCell.swift
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    tableView.register(StoryCell.self, forCellReuseIdentifier: "StoryCell")
    let cell = tableView.dequeueReusableCell(withIdentifier: StoryCell.identifier, for: indexPath) as! StoryCell
    let cell = tableView.dequeueReusableCell(withIdentifier: "StoryCell", for: indexPath) as! StoryCell

  3. feighter09 created this gist Mar 28, 2017.
    3 changes: 3 additions & 0 deletions UglyDequeueCell.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    tableView.register(StoryCell.self, forCellReuseIdentifier: "StoryCell")
    let cell = tableView.dequeueReusableCell(withIdentifier: StoryCell.identifier, for: indexPath) as! StoryCell