title: Need to add multiple UI elements to tableheaderview of UITable in iOS
body: <p>I have a UITableViewController that has a tableView.  To this tableView, I would like to add both a label as well as a button but unfortunately, I am only able to add one or the other.  </p>
  
  <p>Here is my code that I am working with:</p>
  
  <pre><code>- (void) viewDidLoad {
  
      [super viewDidLoad];
  
      selectAllButton = [UIButton buttonWithType:UIButtonTypeCustom];
      [selectAllButton setFrame:CGRectMake(280, 0, 25, 25)];
      [selectAllButton setImage:[UIImage imageNamed:@"CheckBox1.png"] forState:UIControlStateSelected];
      [selectAllButton setImage:[UIImage imageNamed:@"CheckBox2.png"] forState:UIControlStateNormal];
      [selectAllButton setUserInteractionEnabled:YES];
      [selectAllButton addTarget:self action:@selector(buttonTouched:) forControlEvents:UIControlEventTouchUpInside];
  
      selectAllLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 300, 40)];
      [selectAllLabel setTextColor:[UIColor blackColor]];
      [selectAllLabel setBackgroundColor:[UIColor clearColor]];
      [selectAllLabel setText:@"Select All"];
  
      self.tableView.tableHeaderView = selectAllButton;
      self.tableView.tableHeaderView = selectAllLabel;
  
  }
  </code></pre>
  
  <p>When I run the above method, I am only able to see my label which tells me it is replacing the button.  Is there a way for me to get both elements to appear in the tableheaderview?</p>