Skip to content

Instantly share code, notes, and snippets.

@jpbyrne
Last active August 29, 2015 14:23
Show Gist options
  • Save jpbyrne/cf0e678165863cfd616b to your computer and use it in GitHub Desktop.
Save jpbyrne/cf0e678165863cfd616b to your computer and use it in GitHub Desktop.
Calculate TableView Height
func calculateTableViewHeight(cellHeight: CGFloat, numberOfRows: Int) -> CGFloat {
var tableViewHeight: CGFloat = 0.0
tableViewHeight = cellHeight * numberOfRows
return tableViewHeight
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment