title: How to create n number of UIButton programmatically in UITableView Cell?
body: <p>I am trying to create one <code>UITableView</code> with n number of buttons depends on backend JSON data.</p>
  
  <p>I have attached an image, i know how to create UIButtons on <code>UITableViewCell</code> but i don't know how to place them correctly inside <code>UITableViewCell</code>.</p>
  
  <p><code>UIButton</code> for <code>UITableViewCell</code></p>
  
  <pre><code>UIButton *continuebtn = [[UIButton alloc]initWithFrame:CGRectMake(10, 100, view1.frame.size.width-20, 40)];
  [continuebtn setBackgroundColor:[UIColor grayColor]];
  [continuebtn setTitle:@"Continue" forState:UIControlStateNormal];
  continuebtn.layer.cornerRadius = 10;
  continuebtn.layer.borderWidth =1.0;
  continuebtn.layer.borderColor = [UIColor blackColor].CGColor;
  [continuebtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ql6A3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ql6A3.png" alt="enter image description here"></a></p>
  
  <p>How to  place  'n' number of <code>UIButton</code>  on <code>UITableViewCell</code> ?? <code>UIButton</code> width depends on its text content</p>