title: Right detail in UITableView not visible
body: <p>I have a <code>UIViewController</code> in which I've embedded <code>UITableView</code>. Because I don't want the <code>UIViewController</code> to get too heavy I separated the <code>UITableViewDataSource</code> and <code>UITableViewDelegate</code></p>
  
  <pre><code>class ViewController: UIViewController {
  
      @IBOutlet var tableView: UITableView!
  
      var dataSource : UITableViewDataSource!
      var tableDelegate: UITableViewDelegate!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          dataSource = TableViewDataSource()
          tableDelegate = TableViewDelegate()
  
          tableView.dataSource = dataSource
          tableView.delegate = tableDelegate
  
  
          // Do any additional setup after loading the view, typically from a nib.
      }
  
  }
  
  class TableViewDataSource : NSObject, UITableViewDataSource {
  
      func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
          return 1
      }
      func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
         return 1
      }
       func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
          let cellIdentifier = "MyCellIdentifier"
          let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier, forIndexPath: indexPath)
  
          cell.textLabel?.text = "hello"
          cell.detailTextLabel?.text = "world"
  
          return cell
      }
  }
  class TableViewDelegate : NSObject, UITableViewDelegate {
      //custom code here if required
  
  
  }
  </code></pre>
  
  <p>In my Storyboard, I've created a prototype cell within the <code>UITableView</code> with the identifier </p>
  
  <blockquote>
    <p>MyCellIdentifier</p>
  </blockquote>
  
  <p>I use this identifier to create a cell in my <code>UITableViewDataSource</code> delegate method.</p>
  
  <p>However, if I start the app, only the text of the left label is displayed. The detail label is not visible.</p>
  
  <p><a href="https://i.stack.imgur.com/eS6KS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eS6KS.png" alt="enter image description here"></a>
  I looked into the debugger and noticed that detailLabel text is correct. The text of the right label is really "world". However, the label is not visible.
  <a href="https://i.stack.imgur.com/opkDY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/opkDY.png" alt="enter image description here"></a></p>
  
  <p>I've done a little bit of research and there has been <a href="https://stackoverflow.com/questions/25793074/subtitles-of-uitableviewcell-wont-update/25901083#25901083">a similar problem</a> in the past. Whenever the text of the detailLabel was set to nil, it was not visible</p>
  
  <p>However in my example, the text is not nil, it is set to "Detail":
  <a href="https://i.stack.imgur.com/lVTPQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lVTPQ.png" alt="enter image description here"></a></p>
  
  <p>How can I make the right label visible?</p>