title: Detect backspace in UITextField in iOS8
body: <p>For detecting the Backspace, I've overridden <code>DeleteBackward</code> method (should work with iOS5+)</p>
  
  <pre><code>var input = new BackspaceTextField(RectangleF.Empty);
  etc
  input.BecomeFirstResponder();
  </code></pre>
  
  <p>Here's the code </p>
  
  <pre><code>public sealed class BackspaceTextField : UITextField
  {
      public BackspaceTextField(RectangleF frame) : base(frame)
      {
      }
  
      public override void DeleteBackward ()
      {
          Console.WriteLine ("DeleteBackward");
      }
  }
  </code></pre>
  
  <p>When I press "Backspace" button nothing happens. I expect "DeleteBackward" message should appear</p>
  
  <p>Environment: iOS8, xamarin</p>
  
  <p><strong>Edit: 0</strong></p>
  
  <p>Similar question on objective-c: <a href="https://stackoverflow.com/questions/1977934/detect-backspace-in-uitextfield">Detect backspace in UITextField</a></p>
  
  <p>I've done additional check. <code>DeleteBackward</code>is method from <a href="https://developer.apple.com/library/ios/documentation/uikit/reference/UIKeyInput_Protocol/Reference/Reference.html" rel="nofollow noreferrer">UIKeyInput</a> protocol, so I've check <code>insertText</code> method, this method works perfactly.</p>
  
  <pre><code>public override void InsertText (string text)
  {
     base.InsertText(text);
  }
  </code></pre>
  
  <p>I've checked <code>deleteBackward</code> on objective-c and it works perfectly too. </p>
  
  <p>Do you have any ideas how to detect backspace in UITextField in iOS8?</p>
  
  <p>Could you please clarify why the <code>DeleteBackward</code> method was not called?</p>
  
  <p><strong>Edit: 1</strong></p>
  
  <p>I've submitted the same question to the Xamarin's <a href="http://forums.xamarin.com/discussion/22496/xamarin-doesn-t-call-method-from-uikeyinput-protocol" rel="nofollow noreferrer">forum</a>. Looks like a bug in iOS8 + xamarin, because in iOS 7.1 works perfactly.</p>
  
  <p>It's a bug. Here's <a href="https://bugzilla.xamarin.com/show_bug.cgi?id=22211" rel="nofollow noreferrer">details</a></p>