| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // JCTableViewCell.swift
- // JChat
- //
- // Created by deng on 2017/4/6.
- // Copyright © 2017年 HXHG. All rights reserved.
- //
- import UIKit
- class JCTableViewCell: UITableViewCell {
- override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
- super.init(style: style, reuseIdentifier: reuseIdentifier)
- _init()
- }
- required init?(coder aDecoder: NSCoder) {
- super.init(coder: aDecoder)
- _init()
- }
-
- override func awakeFromNib() {
- super.awakeFromNib()
- _init()
- }
- private lazy var line: UILabel = UILabel()
-
- private func _init() {
- line.backgroundColor = UIColor(netHex: 0xE8E8E8)
- line.layer.backgroundColor = UIColor(netHex: 0xE8E8E8).cgColor
-
- addSubview(line)
-
- addConstraint(_JCLayoutConstraintMake(line, .bottom, .equal, contentView, .bottom))
- addConstraint(_JCLayoutConstraintMake(line, .left, .equal, self, .left, 15))
- addConstraint(_JCLayoutConstraintMake(line, .right, .equal, self, .right, -15))
- addConstraint(_JCLayoutConstraintMake(line, .height, .equal, nil, .notAnAttribute, 0.5))
- }
- }
|