开发者

Hold text when using searchDisplaycontroller

开发者 https://www.devze.com 2023-01-24 13:17 出处:网络
I have a question regarding the searchDi开发者_如何学Csplaycontroller Everytime when I enter a searchText, my resultstableview gets loaded.

I have a question regarding the searchDi开发者_如何学Csplaycontroller Everytime when I enter a searchText, my resultstableview gets loaded. everything works just fine. But for some reason when I get to didselectrowatindexpath my searchbar gets empty and I return to textDidChange

Can someone tell me how to fix this? how can I prevent the controller to delete the searchtext?

Thanks in advance


I really need to see your code to figure out what might be going wrong. Check to see if you are ever calling [[[self searchDisplayController] searchBar] setText:XXX] at all. That is what would modify the text in the


you are probably setting the controller to not active, thus making it to delete the searchfield.

0

精彩评论

暂无评论...
验证码 换一张
取 消