title: UITableView Separator Style Question
body: <p>I have a tableview that is blank by default.  User can add cells to it.</p>
  
  <p>I want the separator lines to be clear when there are no cells, and grey when there are cells.</p>
  
  <p>I am using this code:</p>
  
  <pre><code>if ([[self.fetchedResultsController fetchedObjects] count] == 0)
  {
      self.routineTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
      self.routineTableView.separatorColor = [UIColor clearColor];
  }
  else
  {
      self.routineTableView.separatorColor = [UIColor grayColor];
  }
  </code></pre>
  
  <p>The problem is, when I launch the app with a blank table, and if I add cells, the grey lines are not there there until I restart the app.  But if I start with cells there, then delete them, then re-add them, the lines are there.   Any suggestions?</p>