Remove unneeded overrides in custom views
This commit is contained in:
parent
41549b3481
commit
7f6ad5b88c
7 changed files with 33 additions and 70 deletions
|
|
@ -8,23 +8,21 @@
|
|||
|
||||
import UIKit
|
||||
|
||||
class TextViewTableViewCell: ContentTableViewCell {
|
||||
class TextViewTableViewCell: UITableViewCell, ContentProvider {
|
||||
|
||||
@IBOutlet weak var contentTextView: UITextView!
|
||||
|
||||
override func awakeFromNib() {
|
||||
super.awakeFromNib()
|
||||
self.contentTextView.textContainer.lineFragmentPadding = 0
|
||||
self.contentTextView.textContainerInset = .zero
|
||||
}
|
||||
override func setSelected(_ selected: Bool, animated: Bool) {
|
||||
super.setSelected(selected, animated: animated)
|
||||
}
|
||||
|
||||
override func getContent() -> String? {
|
||||
func getContent() -> String? {
|
||||
return contentTextView.text
|
||||
}
|
||||
|
||||
override func setContent(content: String?) {
|
||||
func setContent(content: String?) {
|
||||
contentTextView.text = content
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue