我需要将"CurrentLocation"替换为以下URL中的值."CurrentLocation"是一个预定义的字符串,它给出了一个动态值(我的意思是每次都有不同的位置/城市名称).我需要帮助,如何在Objective-C中做到这一点?
NSURL *MainURL = [NSURL URLWithString:@"http://news.google.com/news?q=location:CurrentLocation&output=rss"];
Run Code Online (Sandbox Code Playgroud)
在JavaScript中我会做这样的事情;
var a="Google"; var b=".com"; var c=".np"; var d=a+b+c; document.write(d);
Run Code Online (Sandbox Code Playgroud)
请有人帮我这个.谢谢!!
我正在学习iPhone应用程序的核心数据.我定义了.xcdatamodel.但我有以下问题:
谢谢.