HI,
i am creating an login screen to my iphone application. i am sending the username and password to php using NSURLConnection method. i can successfully send login details to php. My php page returning status values based on the login details.
(status =OK / Fail , redirectionUrl=http://www.balalaa.com)
In DidReceiveData method if i convert the NSData into string i am getting following string for successful login
“STATUS=OK&url=http://www.balalaa.com“.
Is there any way to fetch the values of STATUS and url, without using NSPredict. Is there any other way to conert the NSData into NSDictionary to fetch values for STATUS key?
Thanks in advance.
Ram
On the other hand, NSScanner will give you a much more efficient way of doing this, and either way you will have to un-escape whatever values and keys you get from the dictionary.