Last active
July 19, 2017 19:01
-
-
Save jeantimex/ca75a2be459750464a88b3a1da964419 to your computer and use it in GitHub Desktop.
CollapsibleTableViewHeader
This file contains hidden or 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
class CollapsibleTableViewHeader: UITableViewHeaderFooterView { | |
let titleLabel = UILabel() | |
let arrowLabel = UILabel() | |
override init(reuseIdentifier: String?) { | |
super.init(reuseIdentifier: reuseIdentifier) | |
contentView.addSubview(titleLabel) | |
contentView.addSubview(arrowLabel) | |
} | |
required init?(coder aDecoder: NSCoder) { | |
fatalError("init(coder:) has not been implemented") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment