开发者

asynchronous call on uisearchbar on iphone

开发者 https://www.devze.com 2023-04-02 06:17 出处:网络
I need to set an asynchronous call for research on uisearchbar on Tablevie开发者_运维技巧w on remote server?

I need to set an asynchronous call for research on uisearchbar on Tablevie开发者_运维技巧w on remote server? I follow this tutorial to implement the searchbar on tableview but in this tutorial the list of element is static, while in my case I need to search on remote server.

Can you help?


You could use the delegate method

- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText

To send your request and make it auto complete, but i would use the

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar

And in this method make a post or get request to your webservice.

Use ASIHTTPRequest for it or RestKit. I think you know how to do that?

0

精彩评论

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