title: Add Xamarin.iOS view cell background color and corner radius
body: <p>I'm trying to add corner radius cell on <strong>selected row</strong>. I can do it for all but not selected one.</p>
  
  <p>This part of code is not working.</p>
  
  <pre><code>[assembly: ExportRenderer(typeof(ViewCell), typeof(ViewCellItemSelectedCustomRenderer))]
  namespace PawsApp.iOS.Renderers
  {
      public class ViewCellItemSelectedCustomRenderer : ViewCellRenderer
      {
          private UIView bgView;
  
          public override UITableViewCell GetCell(Cell item, UITableViewCell reusableCell, UITableView tv)
          {
              UITableViewCell viewCell = base.GetCell(item, reusableCell, tv);
              if (viewCell != null)
              {
                  if (bgView == null)
                  {
                      bgView = new UIView(viewCell.SelectedBackgroundView.Bounds);
                      bgView.Layer.BackgroundColor = Color.FromHex("#666495").ToCGColor();
                      bgView.Layer.CornerRadius = new nfloat(17.5);
                  }
  
                  viewCell.SelectedBackgroundView = bgView;            
              }
              return viewCell;
          }
      }
  }
  </code></pre>