3

I have an issue with a UITextField and the docs haven't turned up much.

The issue: When using autocorrect in my UITextField, if the user uses the suggestion, my UITextField blinks, or more accurately a small white box briefly appears.

Below is an example (which took my 90 times to capture perfectly lol :-0).

So the user has an autocorrect, as seen:

enter image description here

And if they select it, here is that nasty white square that shows briefly: enter image description here

I tried changing the tint color (which right now is textField.tintColor = [UIColor whiteColor];) to clear but that didn't work. Any suggestions?

Jason Renaldo
  • 2,802
  • 3
  • 37
  • 48

1 Answers1

0

This is not possible. It was asked a while ago here and here. There is no public API for the UITextAutocorrection properties.

While researching for the exact situation a while back I've found that the autocomplete for keyboard shortcuts (You can define in your keyboard settings that "omw" will be changed to "On my way!") the completion background will be clear and you won't get the white background flickering. That doesn't help you in any way, I just found it interesting that that specific scenario doesn't use a white background and the other does.

Community
  • 1
  • 1
Segev
  • 19,035
  • 12
  • 80
  • 152
  • Not the answer I wanted, but it seems to be the correct one :-/ – Jason Renaldo Dec 29 '13 at 00:27
  • @JayMorgan While researching for the exact situation a while back I've found that the autocomplete for keyboard shortcuts (You can define in your keyboard settings that "omw" will be changed to "On my way!") the completion background will be clear and you won't get the white background flickering. That doesn't help you in any way, I just found it interesting that that specific scenario doesn't use a white background and the other does. – Segev Dec 29 '13 at 09:48
  • Very odd, I do hope to see some changes with this control in upcoming releases. I might send off to Apple to see what the deal is – Jason Renaldo Dec 30 '13 at 14:46