You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

40 lines
1019 B

//
// TableView.swift
// SwiftHub
//
// Created by Khoren Markosyan on 1/4/17.
// Copyright © 2017 Khoren Markosyan. All rights reserved.
//
import UIKit
class TableView: UITableView {
init () {
super.init(frame: CGRect(), style: .grouped)
}
override init(frame: CGRect, style: UITableView.Style) {
super.init(frame: frame, style: style)
makeUI()
}
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
makeUI()
}
func makeUI() {
rowHeight = UITableView.automaticDimension
estimatedRowHeight = 50
sectionHeaderHeight = 10.0
backgroundColor = kHexColor(0xFAFAFA)
cellLayoutMarginsFollowReadableWidth = false
keyboardDismissMode = .onDrag
separatorColor = .clear
tableHeaderView = UIView(frame: CGRect(x: 0, y: 0, width: 0, height: 10.0))
tableFooterView = UIView()
sectionFooterHeight = 0.01
showsVerticalScrollIndicator = false
}
}