-2

I am looking to add a way to have a user search through my server for certain book titles. The user should be able to search using a string within a UISearchBar, and the results from the server should be displayed in a UITableView below the search bar. What would be the easiest way to implement something like this?
Thanks for any help.

4

1 回答 1

0

不知道你到底在问什么。当然,在 UISearchBar 中输入某些内容的那一刻,您的委托方法就会被调用,并且您在后台开始您的客户端服务器通信并填充表格。取决于负载的重量,但我认为为了获得最佳用户体验,您只填充一定数量的单元格,最后一个单元格是“负载更多”以避免长时间等待。

于 2012-08-05T21:23:57.957 回答