开发者

Network connected iOS app

开发者 https://www.devze.com 2023-02-14 08:57 出处:网络
I Am building a iOS app that purpose is to allow a user to search google books, or another book database, and receive a formatted return in a given format.

I Am building a iOS app that purpose is to allow a user to search google books, or another book database, and receive a formatted return in a given format.

I am having troubles finding out how I would query the server and get a return in my app. And also with using a UISearchbar in order to make the search happen across the web instead of in app itself. I am quite sure my answer lies with a NSurl string somehow but I am having a difficult time finding out how to implement this. Any help would be greatly appreciated!!! Sorry if it is a simple questio开发者_如何学运维n I am very new to development, let alone iOS development...I am a graphic designer by trade...


Go look at ASIHTTPRequest. It's a third-party library for HTTP client functions that is WAY simpler and more feature-rich than the built-in stuff.

EDIT: Thanks for the comment @Nils Munch, as all the places I've recommended ASI would be impossible for me to find without the occasional comment.

ASIHTTPRequest absolutely IS lovely. It's also deprecated by its developer, who recommends using a different package. It's a shame, but there it is: new projects should almost certainly NOT use ASI. AFNetworking seems like a popular choice.


Look into NSURLRequest, NSURLConnection and the URL Loading System Programming Guide.

0

精彩评论

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