Skip to content

Instantly share code, notes, and snippets.

@natecook1000
Created November 19, 2014 15:57
Show Gist options
  • Save natecook1000/ca64e1dc4fa41adfc603 to your computer and use it in GitHub Desktop.
Save natecook1000/ca64e1dc4fa41adfc603 to your computer and use it in GitHub Desktop.
Simple UITableViewCell subclass
class MyCell: UITableViewCell {
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
configureView()
}
required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
configureView()
}
func configureView() {
// add and configure subviews here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment