Skip to content

Instantly share code, notes, and snippets.

@cumanzor
Last active September 28, 2018 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cumanzor/d7cfe4cb64fb2e53c00f76d585d8fdc5 to your computer and use it in GitHub Desktop.
Save cumanzor/d7cfe4cb64fb2e53c00f76d585d8fdc5 to your computer and use it in GitHub Desktop.
UITableView transparent background #ios #swift #uikit
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "CustomCell", for: indexPath)
cell.backgroundColor = .clear
cell.backgroundView = UIView()
cell.selectedBackgroundView = UIView()
return cell
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment