title: Swift - UITableView set separator style
body: <p>How do i set the Separator Style of my UITableView in Swift? I want to get rid of the separator so that there is no grey line between the cells in my table view. Any suggestions would be greatly appreciated.Below is what I have already tried.</p>
  
  <p>I have found this method in objective-C</p>
  
  <pre><code>[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]
  </code></pre>
  
  <p>I tried my best to translate this to swift with </p>
  
  <pre><code>self.tableView.setSeparatorStyle = UITableViewCellSeparatorStyle.None
  </code></pre>
  
  <p>But this presents the error </p>
  
  <pre><code>'(UITableView, numberOfRowsInSection: Int) -&gt; Int' does not have a member named 'setSeparatorStyle'
  </code></pre>
  
  <p>In the apple documentation it gives these declarations in objective-C</p>
  
  <pre><code>typedef enum : NSInteger  {
  
  
  UITableViewCellSeparatorStyleNone ,
     UITableViewCellSeparatorStyleSingleLine ,
     UITableViewCellSeparatorStyleSingleLineEtched 
  } UITableViewCellSeparatorStyle;
  </code></pre>
  
  <p>So I tried again to translate it to Swift using </p>
  
  <pre><code> override func tableView(tableView: UITableView, setSeparatorStyle style: NSInteger) -&gt; NSInteger {
      return UITableViewCellSeparatorStyleNone
  }
  </code></pre>
  
  <p>But this just throws up more errors, "Use of unresolved identifier 'UITableViewCellSeparatorStyleNone"</p>