title: CustomTextField - AutoComplete/AutoCorrect won't dismiss on tap
body: <p>So I created a custom text view using core graphics and have it conformed to the UITextInput and UITextInputTraits protocols.  Everything works fine except for one weird/annoying behavior.  The keyboard correctly displays auto correct suggestions, but when the use taps on a suggestion labelled with an 'X', it doesn't dismiss the suggestion but instead inserts the suggestion.  I've checked, and in all other programs tapping on the a suggestion with an 'X' dismisses the suggestion.  How do I fix this?</p>
  
  <p>In my custom text view I have the following iVars:</p>
  
  <pre><code>//UITextInputTraits
  UITextAutocapitalizationType _uiAutoCap;
  UITextAutocorrectionType _uiAutoCorrect;
  UITextSpellCheckingType _uiSpellCheck;
  UIKeyboardType _uiKeyboard;
  UIKeyboardAppearance _uiKeyboardAppearance;
  UIReturnKeyType _uiReturnType;
  BOOL _uiEnableAutoReturn;
  BOOL _uiSecureText;
  </code></pre>
  
  <p>Which are synthesized to the appropriate TextInputTraits properties:</p>
  
  <pre><code>@synthesize autocapitalizationType=_uiAutoCap, autocorrectionType=_uiAutoCorrect, spellCheckingType=_uiSpellCheck, keyboardType=_uiKeyboard, keyboardAppearance=_uiKeyboardAppearance, returnKeyType=_uiReturnType, inputDelegate=_uiTextDelegate, enablesReturnKeyAutomatically=_uiEnableAutoReturn, secureTextEntry=_uiSecureText;
  </code></pre>
  
  <p>And they're initialized with the following default values:</p>
  
  <pre><code>    _uiAutoCorrect = UITextAutocorrectionTypeDefault;
      _uiSpellCheck = UITextSpellCheckingTypeDefault;
      _uiKeyboardAppearance = UIKeyboardAppearanceDefault;
      _uiAutoCap = UITextAutocapitalizationTypeNone;
      _uiReturnType = UIReturnKeyDefault;
      _uiEnableAutoReturn = NO;
      _uiSecureText = NO;
      _uiKeyboard = UIKeyboardTypeDefault;
  </code></pre>
  
  <p>Any ideas?</p>