I need to replace "CurrentLocation" with the value in the following URL. "CurrentLocation" is a predefined string and gives a dynamic value (I mean a different location / city name each time). I need help. How to do this in Objective-C ??
NSURL *MainURL = [NSURL URLWithString:@"http://news.google.com/news?q=location:CurrentLocation&output=rss"];
In JavaScript, I would do something like this;
var a="Google"; var b=".com"; var c=".np"; var d=a+b+c; document.write(d);
Please help me with this. Thanks!!
source share