Last active
May 14, 2019 19:57
-
-
Save daniloc/71f9aeb3cb7c223c456ac6eceaee20b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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