I need to add custom header to my table
I try this
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { l
add label to subview of custom view, no need of self.view.addSubview(view), because viewForHeaderInSection return the UIView
label
subview
view
self.view.addSubview(view)
viewForHeaderInSection
UIView
view.addSubview(label)