I am sending argument from my iphone application to php page to genrate xml given below.
feedurl=@"http://www.abc.net/feed/index_clatest.php?more=s-laday gaga";
The url run in mozila when it runs.
but when i run it in my iphone application i get the following error.
erminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘ -[NSConcreteData initWithContentsOfURL:options:error:]: nil URL*
Note: it works when i just send s-lady in argument.
Help me please.
You need to replace space (and other invalid in url characters) by percent escapes. NSString has
-stringByAddingPercentEscapesUsingEncoding:method for that