title: Custom UITableViewCell Button and RowSelected (iOS/Monotouch)
body: <p>I have a 'Load More' <code>UIButton</code> inside a custom <code>UITableViewCell</code>. My table also uses a Delegate. I want to reload the table data when this button is clicked. I have noticed that when I click the button, nothing happens. But when I click on the area around the button i.e. the actual Cell, the Delegate gets the RowSelected event.
  I tried using <code>SetSelected(true,false);</code> from the button's touch up inside event to see if it would fire the RowSelected event for the delegate, but it didn't.</p>
  
  <p>Can anyone explain me how I can make a button click for a Custom Table cell fire the actual Row Selected event? If this isn't a viable option, is there a better way to 'Load more data' other than placing the button inside a custom table view cell?</p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE:</strong>
  I do use ContentView.AddSubView as shown in the code below. Please note I'm using Monotouch, but the logic is the same:</p>
  
  <pre><code>            public LoadMoreCell (string reuseCellIdentifier)
          :base(UITableViewCellStyle.Default, reuseCellIdentifier)
      {
          SelectionStyle = UITableViewCellSelectionStyle.None;
  
          _btnLoadMore = UIButton.FromType(UIButtonType.RoundedRect);
          _btnLoadMore.Frame = new RectangleF(10,5,300,30);
          _btnLoadMore.SetTitle("Load More", UIControlState.Normal);
          _btnLoadMore.UserInteractionEnabled = true;
          ContentView.AddSubview(_btnLoadMore);
  
  
      }
  </code></pre>
  
  <p>I have a TableDelegate that has a RowSelected method where I reload the data...however, the RowSelected only gets fired when I click the actual row.</p>