-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathTextTableViewCell.swift
More file actions
44 lines (36 loc) · 1.24 KB
/
Copy pathTextTableViewCell.swift
File metadata and controls
44 lines (36 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// TextTableViewCell.swift
// sandbox
//
// Created by sonson on 2017/04/07.
// Copyright © 2017年 sonson. All rights reserved.
//
#if os(iOS)
import UIKit
internal class TextTableViewCell: UITableViewCell {
let textView = UZTextView(frame: .zero)
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
self.separatorInset = .zero
self.selectionStyle = .none
textView.backgroundColor = .black
textView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
textView.contentMode = .scaleAspectFit
self.contentView.addSubview(textView)
textView.frame = self.contentView.bounds
textView.contentInset = UIEdgeInsets(top: 15, left: 15, bottom: 15, right: 15)
self.contentView.backgroundColor = .black
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
#endif