Closed Nikaladze closed 10 years ago
There is a little bug when I trying to type first letter from the phrase. For example, if my first character will be 'a' - there will be:
APAutocompleteTextFieldExample[1487:70b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Wrong completion string'
So, I have modified your code (just a little) by adding one condition to autocompleteTextField:complitedStringForOriginString in APViewController.m:
if ((originStringRange.location == NSNotFound) || (originStringRange.location != 0) ) { complitedString = nil; }
Oh. Yes, of course. I missed it. But this is just an example, so that's okay. I'll fix it, thanks
There is a little bug when I trying to type first letter from the phrase. For example, if my first character will be 'a' - there will be:
So, I have modified your code (just a little) by adding one condition to autocompleteTextField:complitedStringForOriginString in APViewController.m: