开发者

How to create a Login and Registration page in Objective-C and how connect it to the server? [duplicate]

This question already has answers here: How to use HTTPS with NSURLConnection? 开发者_C百科 (2 answers) Closed 3 years ago.

I want to create a Login and Registration page in Objective-C but I am very new in iPhone programming. How can i create that pages and how connect it to the server? Thanks to everyone can help me!


You can communicate with a server using HTTP using the URL Loading System


You'll want to expose the login and registration functionality as a web service, then you'll consume that service from the iPhone. Typically, you'll use an NSURLConnection to asynchronously connect to the web service, return your results as an XML document, parse the XML with an NSXMLParser, and react accordingly.

There's definitely also the possibility of creating a socket connection to the server and communicating over your own protocol, but using a web service makes things much easier and allows you to easily support other devices in the future.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜