Skip to content

Instantly share code, notes, and snippets.

@mimthath4
Last active January 29, 2020 04:39
Show Gist options
  • Save mimthath4/60e47c76707a90cf684f72f550104956 to your computer and use it in GitHub Desktop.
Save mimthath4/60e47c76707a90cf684f72f550104956 to your computer and use it in GitHub Desktop.
extension ViewController: UITableViewDataSource {
func numberOfSections(in tableView: UITableView) -> Int {
// your implementation goes here
}
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
// your implementation goes here
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// your implementation goes here
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// your implementation goes here
}
}
extension ViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
// your implementation goes here
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
// your implementation goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment