Skip to content

Instantly share code, notes, and snippets.

@sigidhanafi
Last active November 13, 2020 02:35
Show Gist options
  • Save sigidhanafi/bce7fbf5601f2e9f977a4743e616d152 to your computer and use it in GitHub Desktop.
Save sigidhanafi/bce7fbf5601f2e9f977a4743e616d152 to your computer and use it in GitHub Desktop.
UITableView Getting Started
class ViewController: UIViewController {
// create property tableview
private let tableView: UITableView = {
let tableView = UITableView()
tableView.backgroundColor = .white
tableView.translatesAutoresizingMaskIntoConstraints = false
return tableView
}()
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
view.backgroundColor = .white
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment