title: How to change the header font of a grouped uitableview?
body: <p>I have a grouped table view and want to change the font style of the section headers. I have tried: </p>
  
  <pre><code>func tableView(tableView: UITableView, willDisplayHeaderView view: UIView,
                 forSection section: Int) {
    let header = view as! UITableViewHeaderFooterView
    header.textLabel?.font = UIFont(name: "Futura", size: 11)
  }
  
  override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -&gt; UIView? {
      let view = UITableViewHeaderFooterView.init(frame: CGRect.init(x: 0, y: 0, width: tableView.bounds.width, height: tableView.sectionHeaderHeight))
      view.contentView.layoutMargins = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 20)
      view.contentView.backgroundColor = UIColor.init(red: 235/255, green: 235/255, blue: 235/255, alpha: 0)
      let label = UILabel.init(frame: CGRect.init(x: 20, y: 0, width: tableView.bounds.width, height: tableView.sectionHeaderHeight))
      label.font = UIFont(name: "Futura", size: 11)
      label.textColor = UIColor.blue
      view.addSubview(label)
      return view
  }
  </code></pre>
  
  <p>I tried the above code one at a time and together, but nothing seems to work. Please help. Thanks!</p>