title: Using rounded-rect button for TableView footer in iPhone?
body: <p>I'm trying to put a button to footer of TableView.</p>
  
  <p>This is what i did and I can't see the button but the string "RESULT" is displayed. </p>
  
  <p>I've tried everything I can think of. but I couldn't figure out what's wrong. I need you help!</p>
  
  <pre><code>- (void)viewDidLoad {
   btnSeeResult = [UIButton buttonWithType:UIButtonTypeRoundedRect];
   [btnSeeResult setTitle:@"RESULT" forState:UIControlStateNormal];
  
   viewResult = [[UIView alloc] initWithFrame:btnSeeResult.frame];
   [viewResult addSubview:btnSeeResult];
  
   self.tableView.tableFooterView = btnSeeResult;
  }
  
  -(CGFloat) tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
      return viewResult.bounds.size.height;
  }
  </code></pre>
  
  <p>Anyway, what's the difference between setting the footer view directly like </p>
  
  <pre><code>tableView.tableFooterView = footerView;
  </code></pre>
  
  <p>and using <code>(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section</code> method??</p>