Accessing Page From App?

人盡茶涼 提交于 2019-12-25 03:26:49

问题


I am only just starting out with iPhone application development and have been doing some research with regards at getting data into an app using information available via the web.

I understand that I can access web pages using the NSURL* classes. Does anyone know how I might request data from a page that requires user input?

I can understand accessing an actual page, but I am not sure if (or how) I might be able to initiate the request and get the appropriate data back into my app.

Any help / pointers is very much appreciated.

EDIT_001:

I was thinking that I would have to interact with the actual controls on the page, but after a little more investigation I have found that I can simply use the request HTML that the page generates.

gary


回答1:


This question is really too broad ("how does http networking work"), and if you look around this site you will probably find several questions that will take you in the right direction. As a first stop, check out the ASIHTTPRequest framework. Many people use it, and it makes http networking really simple.

You could also have a look at these links for inspiration:

http://iphoneonrails.com/ http://metaskills.net/2010/2/12/synchronizing-core-data-with-rails-3-0-0-pre



来源:https://stackoverflow.com/questions/2292688/accessing-page-from-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!