title: Interactive Section header of UITableView
body: <p>I have <code>UITableView</code> in which I have added a <code>UIButton</code>. The problem is it is only showing in on the top of the header. How can I add the button in all of the section headers so that I can make the section interactive?</p>
  
  <p>Here is the code for adding a button on Section Header of <code>UITableView</code> </p>
  
  <pre><code>    func tableView(tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int) {
      let header: UITableViewHeaderFooterView = view as! UITableViewHeaderFooterView
      header.contentView.backgroundColor = UIColor(red: 255/255, green: 200/255, blue: 20/255, alpha: 1.0) // Just some random color
      header.textLabel!.textColor = UIColor.whiteColor()
      let btn = UIButton(type: UIButtonType.Custom) as UIButton
      btn.frame = CGRectMake(header.frame.width - 62, 0, 50, 50)
      btn.addTarget(self, action: "pressed:", forControlEvents: .TouchUpInside)
      btn.setTitle("Direction", forState: .Normal)
      btn.setTitleColor(UIColor.whiteColor(), forState: .Normal)
      header.contentView.addSubview(btn)      
  }
  </code></pre>
  
  <p>Can anyone tell me how to add interactive button on every section? </p>