Recently I have been trying to call a *.php file on a server and collect the response.I am trying to do this in xcode to make an ios app. I have tried to do it with a:
NSURLConnection *conn = [[NSURLConnection alloc] init];
(void)[conn initWithRequest:request delegate:self];
But the program crashs when i do this and it says that an exception was thrown. So i want to know how can i easy call a web-server and get a response. I am very new to ios development so you dont asume i know anything ;).
I have been looking through a lot of tutorial but i can't seem to make one work.