title: How do I put a button inside a tableview cell?
body: <p>I'm new to this, so I have troubles doing that. My goal is too put, like the title said, a button inside a cell. If you want to see my code, so that this could help you to answer this question, here is the code: </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Text;
  using Foundation;
  using UIKit;
  
  namespace TableView
  {
  public class TableSource : UITableViewSource
  {
      string[] tableItems;
      string cellIdentifier = "TableCell"; 
  
  
  
      public TableSource (string[] items)
      {
          tableItems = items; 
      }
  
      public override nint RowsInSection(UITableView tableview, nint section)
      {
          return tableItems.Length; 
      }
      public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
      {
          new UIAlertView("Alert", "You selected: " + tableItems[indexPath.Row], null, "Next Site", null).Show();
          tableView.DeselectRow(indexPath, true); 
      }
      public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
      {
          UITableViewCell cell = tableView.DequeueReusableCell(cellIdentifier);
          if (cell == null)
              cell = new UITableViewCell(UITableViewCellStyle.Subtitle, cellIdentifier);
          cell.TextLabel.Text = tableItems[indexPath.Row];
  
          if(indexPath.Row &gt; -1)
              cell.DetailTextLabel.Text = tableItems[indexPath.Row - 0];
  
  
  
              return cell; 
      }
  }
  }
  </code></pre>
  
  <p>Here is the code for ViewController, if this is needed to. </p>