EddyBorja / MLPAutoCompleteTextField

UITextfield subclass with autocomplete menu. For iOS.
Other
1.21k stars 222 forks source link

AutoComplete View does not disappear when using with textfields in static tableview #50

Open uditbatra opened 10 years ago

uditbatra commented 10 years ago

AutoComplete View does not disappear when clicked on suggestion using with textfields in static tableview.

WedgeSparda commented 9 years ago

Same happens here. AutoComplete View appears, but when I select a suggestion, nothing happens.

I set the autoCompleteDelegate correctly but (void)autoCompleteTextField(MLPAutoCompleteTextField *)textField didSelectAutoCompleteString:(NSString *)selectedString withAutoCompleteObject:(id<MLPAutoCompletionObject>)selectedObject forRowAtIndexPath:(NSIndexPath *)indexPath is never triggered.

WedgeSparda commented 9 years ago

I just realized that what happens is the same problem related in issue https://github.com/EddyBorja/MLPAutoCompleteTextField/issues/7

But the problem is still here.

YahiaRagae commented 8 years ago

I faced the same problem and used a workaround by setting [self.tfDistinationCity setAutoCompleteTableAppearsAsKeyboardAccessory:YES];

aahmed92021 commented 8 years ago

I am having this issue with UITableView having Dynamic cells. The issue is I have multiple UITextFields on UITableView and when I click on the result, the other textField start editing, instead of selecting the autocomplete result being chosen. Do mind that I know the Keyboard accessory solution, but, I have to implement it the other way i.e. beneath the textfield. Thanks