title: update "DetailTextLabel.text" in a UITableView using delegate from other view-controller in iOS swift
body: <p>I am learning swift and currently I am experimenting UITableView in a View-Controller.</p>
  
  <p>I want to change DetailLabelText.text for a specific row by receiving an <strong>index number</strong> and <strong>a String</strong> via <strong><em>delegate from other view-controller</em></strong></p>
  
  <p>I just could not figure out that where to perform this update of row.</p>
  
  <pre><code>    class     myView:UIViewController,UITableViewDataSource,UITableViewDelegate,totalContactsAdded  {
      @IBOutlet weak var tableView: UITableView!
  
  
      override func viewDidLoad() {
      super.viewDidLoad()
      }
  
  
      @IBAction func addAGroupBtnclicked(sender: UIBarButtonItem) {
     addGroupName()
      }
      override func viewDidAppear(animated: Bool) {
      tableView.reloadData()
      }
  
      func getCount(aString: String , anIndex: Int) {
  
      //  UPDATE SELECTED ROW HERE BUT HOW ?  
      }
  
      func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
      return 1
      }
  
      func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return groupMgr.groups.count
      }
  
      func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath:     NSIndexPath) -&gt; UITableViewCell{
      let cell: UITableViewCell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: "Groups")
  
      cell.textLabel?.text = groupMgr.groups[indexPath.row].name
      cell.DetailLabelText?.text = groupMgr.groups[indexPath.row].count
      return cell
      }
  
  
      func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      performSegueWithIdentifier("tocontacts", sender: tableView)
      }
  
  
  
      func tableView(tableView: UITableView, commitEditingStyle editingStyle:  UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath){
      if (editingStyle == UITableViewCellEditingStyle.Delete){
  
          groupMgr.groups.removeAtIndex(indexPath.row)
          tableView.reloadData()
      }
      }
  
  
  
  
      override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  
      if segue.identifier == "tocontacts" {
          var tab = segue.destinationViewController as TabbarController
          var view = tab.viewControllers?.first as contactsListView
          view.delegate = self
      }
          }
      func toaster(message:String){
      self.view.makeToast(message: message)
      }
   }
  </code></pre>