title: How to hide All section header in UITableViewcell (grouped style)?
body: <p>I have two section in <code>UITableviewCell</code>. I want hide that two section.
  this is my code.</p>
  
  <pre><code> -(CGFloat)tableView:(UITableView *)tableView  heightForHeaderInSection:(NSInteger)section
  {
  if (section == 0)
  {
      return CGFLOAT_MIN;
  }
  else
  {
      return 32.0f;
  }
  }
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
  return [storename2 count];
  }
  
   - (NSString *)tableView:(UITableView *)tableViewtitleForHeaderInSection:(NSInteger)section
  {
  if (section == 0)
  {
      return nil;
  }
  else
  {
       return [storename2 objectAtIndex:section];
  }
  }
  </code></pre>
  
  <p>In Viewdidload.</p>
  
  <pre><code>- (void)viewDidLoad 
  {
  [super viewDidLoad];
   self-&gt;CartTableview.contentInset = UIEdgeInsetsMake(-1.0f, 0.0f, 0.0f, 0.0);
  }
  </code></pre>
  
  <p>But its only Hide First Section,
  show below image i want like this (When Card Is Empty Hide Sections and when i add products to the card show all(two)section.)
  help me,</p>
  
  <p>show 1st image.
  when i add product to card two section will show and when i remove the product all section will hidden.
  Thanks in Advance.</p>
  
  <p><a href="https://i.stack.imgur.com/dHC13.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dHC13.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/dHC13.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P5AO1.png" alt="enter image description here"></a></p>