title: How do I set the delegate of a UITableViewCell from a UITableViewDataSource?
body: <p>In my UITableViewController I have set an external class for the DataSource. As below</p>
  
  <pre><code>class HomeViewDataSource: NSObject, UITableViewDataSource {
  
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier(myCellIdentifier, forIndexPath: indexPath)
        cell.delegate = //Should I set this to the view controller?
        return cell
    }
  }
  </code></pre>
  
  <p>As you can see, I have a reusable cell that I would like to set a delegate for. In the cell I have a button that triggers an event on the UITableViewController. For now, I have set the delegate of the cell to my UITableViewController so that it can perform a network call. I do not believe I am doing this in a correct MVC format however.</p>
  
  <p>The network call in the UITableViewController uses a property from an array in the UITableViewDataSource.</p>
  
  <p>What is a better method to do this? </p>