I am a newbie in XCode4.3.
As mentioned in title, how should I use http method PUT to send a json data to my server?
My json is as follows:
{"password":"11111111","nickname":"yo", "email_address":"abc@abc.com"}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll need NSURLRequest and then NSURLConnection objects. Your view controller can then implement the NSURLConnectionDelegate protocol, and handle the response from the server. These links should get you going in the right direction.
The basic pattern is this:
connectionDidFinishLoading:to actually do something with your UI based on the response.