title: Check if cell is selected and format it accordingly iOS UITableView
body: <p>I am trying to implement a functionality where I want to set the first row of a UITableView as selected. The UITableView is a subview of my UIViewController . I am able to select the 1st row through my UIViewController. Like so :-</p>
  
  <pre><code>  var indexPath = NSIndexPath.FromRowSection(0, 0);
  
   newTableChoice.Source = new RatingScaleSource(this,data.TypeAsString ,data.Title, choiceList);
   newTableChoice.SelectRow(indexPath, false, UITableViewScrollPosition.Top);
  </code></pre>
  
  <p>Now I want to implement it further in my DataSource, where if the first row is selected then I want to add an accessory to it so that the user knows that particular row is selected by default.</p>
  
  <p>I tried implementing this in my RatingScaleSource class which is my DataSource :-</p>
  
  <pre><code>  public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
  {
        cell = tableView.DequeueReusableCell("ChoiceTableCell") as ChoiceTableCell;
          if (tableView.CellAt(indexPath).Selected)
          {
              cell.Accessory = UITableViewCellAccessory.Checkmark;
          }
      }
  </code></pre>
  
  <p>But this crashes the app as the Cell is not yet created. I want to know which Function can detect if the row is already selected and where I can add the accessory. Any help is appreciated.</p>