开发者

Hold text when using searchDisplaycontroller

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜