![](/img/trans.png)
[英]Editing the info.plist file via config.xml in phonegap app?
[英]How to read the value for a key from the info.plist in an config.xml file in my iPhone app
我正在為iOS和Android平台開發Cordova應用程序。 在iOS應用中,使用此<content src="abc.xyz.com"/>
將服務器URL加載到config.xml文件中。 但是我想從info.plist動態獲取服務器的url。
<key>url</key>
<string>http://abc.xyz.com</string>
因此,我如何以編程方式從info.plist中讀取值到config.xml文件中。
謝謝
嘗試這個 :
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"url"]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.