Skip to content

Instantly share code, notes, and snippets.

@daniloc
Last active May 14, 2019 19:57
Show Gist options
  • Save daniloc/71f9aeb3cb7c223c456ac6eceaee20b7 to your computer and use it in GitHub Desktop.
Save daniloc/71f9aeb3cb7c223c456ac6eceaee20b7 to your computer and use it in GitHub Desktop.
@IBOutlet var puppyCell: UITableViewCell!
@IBOutlet var cupcakeCell: UITableViewCell!
@IBOutlet var unicornCell: UITableViewCell!
@IBOutlet weak var puppyLabel: UILabel!
var staticCells: Array<UITableViewCell>!
var dynamicContent = ["One", "Two", "Three", "Four"]
let dynamicCellIdentifier = "Dynamic"
override func viewDidLoad() {
super.viewDidLoad()
staticCells = [puppyCell,
cupcakeCell,
unicornCell]
tableView.register(UITableViewCell.self, forCellReuseIdentifier: dynamicCellIdentifier)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment