title: How to change label text that is outside the tableview when a button in the tableview is click
body: <p>The problem is i have a tableview with custom cells. Inside the cell, i have a button. When the button is click, it should change the label text that is outside the tableview.</p>
  
  <p>Edit:
  the label's text that I'm trying to change is on a different view. The ViewController has a tableview and a label view. Inside the tableview is a button and when it is click it changes the label's view text.</p>
  
  <p>CustomCell and TableSource:</p>
  
  <pre><code>namespace Testing.iOS
  {
      public partial class CustomCell : UITableViewCell
      {
  
          // Code omitted
  
          public class TableSource : UITableViewSource
          {  
              ViewController vc = new ViewController();
  
              public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
              {
                  var cell = tableView.DequeueReusableCell (CustomCell.Key) as CustomCell;
  
                  if (cell == null) 
                  {
                      cell = new CustomCell ();
                      var views = NSBundle.MainBundle.LoadNib("CustomCell", cell, null);
                      cell = Runtime.GetNSObject( views.ValueAt(0) ) as CustomCell;
                  }
  
                  cell.btn.TouchUpInside += (object sender, EventArgs e) =&gt; 
                  {     
                      // Change label that is outside tableview
                      vc.updateLabel();
                  };
  
                  // Code omitted
  
                  return cell;
              }
          }
      }
  }
  </code></pre>
  
  <p>View Controller:</p>
  
  <pre><code>namespace Testing.iOS
  {
      public partial class ViewController : UIViewController
      {    
          public ViewController () : base ("ViewController", null)
          {
          }
  
          public override void ViewDidLoad ()
          {
              base.ViewDidLoad ();
  
              tableView.RegisterNibForCellReuse (CustomCell.Nib, "CustomCell");
              tableView.Source = new CustomCell.TableSource();
          }
  
          public override void DidReceiveMemoryWarning ()
          {
              base.DidReceiveMemoryWarning ();
          }
  
          public void updateLabel()
          {
              label.Text = "testing";
          }
      }
  }
  </code></pre>