title: How to fix a button at the bottom of the tableview?
body: <p>In my App i want to fix a button at the bottom of the table view.</p>
  
  <p>Here is my Initial Screen,</p>
  
  <p><a href="https://i.stack.imgur.com/XwuUS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XwuUS.png" alt="enter image description here"></a></p>
  
  <p>Button created at the footer section</p>
  
  <pre><code>-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
  {
  if(tableView == educateTbl) 
  {
      float footerWidth = 150.0f;
      float padding = 10.0f;
      UIView *footerView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, footerWidth, 50.0)];
      footerView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
  
      UIButton *addEdu = [[UIButton alloc]initWithFrame:CGRectMake(padding, 0, footerWidth - 2.0f * padding, 44.0f)];
      addEdu.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
      addEdu.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
  
      [addEdu setTitle:@"Add Education" forState:UIControlStateNormal];
      [addEdu addTarget:self action:@selector(addEducation:) forControlEvents:UIControlEventTouchUpInside];
      [addEdu setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
      addEdu.frame=CGRectMake(0, 0, 200, 30); 
      [footerView addSubview:addEdu];
      return footerView;
  }
  return nil;
  }
  </code></pre>
  
  <p>After that i am getting like this,</p>
  
  <p><a href="https://i.stack.imgur.com/q2YsG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q2YsG.png" alt="enter image description here"></a></p>
  
  <p>How can i fix that?</p>