Remove unneeded overrides in custom views

This commit is contained in:
Danny Moesch 2019-01-27 14:26:11 +01:00
parent 41549b3481
commit 7f6ad5b88c
7 changed files with 33 additions and 70 deletions

View file

@ -13,7 +13,7 @@ protocol PasswordSettingSliderTableViewCellDelegate {
func generateAndCopyPassword()
}
class SliderTableViewCell: ContentTableViewCell {
class SliderTableViewCell: UITableViewCell, ContentProvider {
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var valueLabel: UILabel!
@ -27,17 +27,6 @@ class SliderTableViewCell: ContentTableViewCell {
}
}
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
@IBAction func handleSliderValueChange(_ sender: UISlider) {
let oldRoundedValue = self.roundedValue
let newRoundedValue = Int(sender.value)
@ -67,4 +56,9 @@ class SliderTableViewCell: ContentTableViewCell {
}
}
func getContent() -> String? {
return nil
}
func setContent(content: String?) {}
}