SearchTextField
SearchTextField copied to clipboard
FilterItems frame not changing when scrolling
I have put SearchTextField in a UIScrollVeiw. but the problem is when scroll view scrolling FilterItems frame not changing. it works when I reset text in scrollViewDidScroll.
func scrollViewDidScroll(_ scrollView: UIScrollView) { acronymTextField.text = acronymTextField.text // hack for move filter screen with textfield when scrolling }
Hi @dErangaPrasad have you found the solution am also stuck with the same problem. if found can you share it
I have the same problem, but i have my searchtextfield in an tableviewcell. Presumably something changed in the newer version. The problem manifests for me since i have to the swift 4.0 version of the SearchTextField.
I also have the some issue, but in tableview. Once I search & select some element then on scroll the search result is visible again when cellforindex is called. Did any one get a fix on the above case?
I also have the some issue, but in tableview. Once I search & select some element then on scroll the search result is visible again when cellforindex is called. Did any one get a fix on the above case?
Hi @vinbhai4u, If you call hideResultsList() on the textField before returning your cell in cellForRowAtIndexPath it will stop the result from popping up again as you scroll and cellForRowAtIndexPath is called.
eg:
cell.textField.hideResultsList()
return cell