Skip to content

Instantly share code, notes, and snippets.

@daniloc
Created May 14, 2019 19:44
Show Gist options
  • Save daniloc/b5d3165739ca8ee3d96df1feaf0c62d9 to your computer and use it in GitHub Desktop.
Save daniloc/b5d3165739ca8ee3d96df1feaf0c62d9 to your computer and use it in GitHub Desktop.

Revisions

  1. daniloc created this gist May 14, 2019.
    7 changes: 7 additions & 0 deletions Table_View_Rows_in_Section.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    if (section == TableSections.dynamicSection.rawValue) {
    return dynamicContent.count
    } else {
    return staticCells.count
    }
    }