Skip to content

Instantly share code, notes, and snippets.

@c1800054work
Last active March 24, 2022 10:26
Show Gist options
  • Select an option

  • Save c1800054work/17337d8adbe8f63d4db5892e7e4a1319 to your computer and use it in GitHub Desktop.

Select an option

Save c1800054work/17337d8adbe8f63d4db5892e7e4a1319 to your computer and use it in GitHub Desktop.
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell: UITableViewCell = tableView.dequeueReusableCell(withIdentifier: "cell") ?? UITableViewCell(style: .subtitle, reuseIdentifier: "cell")
cell.imageView?.image = UIImage(named: "2")
cell.textLabel?.text = "title"
cell.detailTextLabel?.text = "subTitle"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment