开发者

How to go about building an iPhone app that accesses a website with a custom UI?

开发者 https://www.devze.com 2023-02-06 17:46 出处:网络
I don\'t quite know how to explain this but I want to build an app that can access a website like, for example, Facebook, but I don\'t actually want it to be Facebook\'s website in the sense that I wa

I don't quite know how to explain this but I want to build an app that can access a website like, for example, Facebook, but I don't actually want it to be Facebook's website in the sense that I want to design the UI. There is a couple of apps like this already in the app store, one being called "Facebook开发者_JS百科 Touch HD". I have managed to get an app to access Facebook with UIWebView, but it just goes to Facebook's mobile website, obviously.


Look at the Facebook IOS SDK.


You probably want to fetch data from Facebook using its APIs. Facebook actually offers a library for iOS, so you may want to check it out.

In general, this applies to any site that offers an API. Usually you can use NSURLConnection to make requests to get the data you're interested in (check the specific API's documentation for details); then you have parse that data (most services output data in XML or JSON).

0

精彩评论

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

关注公众号