自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

PhoneGap官網(wǎng)翻譯 開發(fā)中常見問題文檔

移動開發(fā)
本文翻譯自PhoneGap官方網(wǎng)站常見問題解答,PhoneGap官方網(wǎng)站對開發(fā)的常見問題進行了充分的解答,如果您英文不好可以參看本文。

Q. I have an issue with PhoneGap for iOS?

A. See “PhoneGap for iOS FAQ”

問:對于iOS PhoneGap我有一個問題?

答:請參考“iOS PhoneGap常見問題”。

Q. Do I need to “Jailbreak” my iphone to use iPhone PhoneGap?

A. No.

問:我需要“Jailbreak”我的iphone去使用iPhone PhoneGap嗎?

答:不需要。

Q. What PhoneGap apps are available in the iPhone store?

A. projects

問題:在iPhone 商店里面什么樣的PhoneGap應用程序可以使用?

答案:項目

Q. How do you change the default PhoneGap loading screen?

A. Change the default.png file to one of your liking.

問:如何更改PhoneGap默認的載入畫面?

答:將default.png文件改成你喜歡的圖片。

Q. I get errors while building my iPhone app in Xcode.

A. See the known problems & solutions.

問:當我在Xcode上生成我的iPhone應用程序時,遇到了一個錯誤。

答:請參考 已知問題和解決方案。

Q. What’s this I hear about Apple rejecting PhoneGap apps? Will my app get rejected?

A. Of course, Apple always has the final say. As of version 0.8, PhoneGap apps should be okay. (or PDF) Also, Apple has done a technical review, and PhoneGap apps should be ok and each app will be judged on its own merits.

問:我聽說Apple拒絕PhoneGap的應用程序,我的應用程序會被拒絕嗎?

答:當然,蘋果擁有最終的決定權(quán)。0.8版的PhoneGap應用程序應該是沒有問題的(或者PDF),此外,Apple已經(jīng)做了技術審查,并且PhoneGap應用程序是沒有問題的, each app will be judged on its own merits.

Q. I’m using navigator.geolocation on the iPhone, why does it show a popup alert with a funny url to my index.html file?

A. On iPhone OS 3.x, UIWebView’s navigator.geolocation takes over, which will use the native Javascript API for it. This shows the warning and the location of the page asking for the location permission. Discussion here.

The latest solution for iPhone OS 4.x and PhoneGap 0.9.x is to follow the example of the docs for and add an event listener that waits for the device to be ready, otherwise the native navigator.geolocation is used and you get an alert like this: “var/mobile/Applications/UUID/appname.app/www/index.html” Would Like To Use Your Current Location.

問:我在iPhone上使用navigator.geolocation,為什么會彈出有一個奇怪的url到指向我的index.html文件的提示? (為什么會彈出一個指向我的index.html文件的奇怪的url的提示?)

答:在iPhone OS 3.x中,UIWebView中的navigator.geolocation將會使用本地的Javascript API來接管他,這樣就會出現(xiàn)警告,并且要求頁面所在的路徑有權(quán)限。這里有討論。

Q. Why do the iPhone PhoneGap functions not work when navigating to another local html file from index.html?

A. See this bug for discussion.

問:當從index.html導航到其他本地的html文件時,為什么iPhone PhoneGap功能不能運行?

答:請參考這里對錯誤的討論。

Q. Can I just create an iPhone PhoneGap-based app that just loads my website?

A.You can, but as for Apple approving it, that’s another matter, and they most likely won’t. As a rule of thumb, if there is no Internet connection, you must at least load the UI (your views) without the corresponding data, and put an error notice to that effect. Therefore your app must have these views included in it. For a guideline, set your iPhone to Airplane Mode in the Settings, then load either the Maps, Weather, Youtube, ITunes or Facebook apps, and see what they do (have a “shell”). Apple is probably concerned about them approving your app based on your app description and functionality as promised by you, and then you turning around and changing it completely after approval to something undesirable.

問:我可以創(chuàng)建一個iPhone PhoneGap-based 應用程序只加載我的網(wǎng)站嗎?

答: 可以,但是要被Apple批準,那就是另外一件事情 (這是另一回事) ,他們很有可能不會。根據(jù)經(jīng)驗,如果沒有連接互聯(lián)網(wǎng),你必須加載UI(你的意見)沒有相應的數(shù)據(jù),會產(chǎn)生一個錯誤提示。因此,你的應用程序必須有這些包含它的意見。有一個規(guī)定,在你的配置中將你的iPhone設置為Airplane模式,然后無論是加載地圖,天氣,原鏈接、Itunes或者Facebook應用程序,看看他們做了什么(有一個“shell”)。Apple可能關心 批準你許諾你的應用程序的描述和功能,在批準以后,你將他完全修改一些不可取的內(nèi)容。

Q. Is the Edge version “safe” to use, since its architecture has evolved? Apple has “approved” only 0.8.0 right, so will using anything else be unsafe?

A. The architecture has evolved only externally to make it easier to develop for, and easier to deploy for users (so if we update the core code, users will not have to integrate it in to their existing code, a big hassle with 0.8.0 and lower). Internally everything is the same, the way we handle commands, etc.

If you are looking for assurances of ultimate safety, there will be none, since Apple can change their mind no matter what they said before. We have never submitted anything to Apple to validate, they are the ones that chose to do so with the last version (a security review), and with any upcoming versions, it will be their decision ultimately.

問:Edge 版本是可以“安全”使用,因為它的架構(gòu)已經(jīng)演變了?Apple只“批準”0.8.0的版權(quán),因此使用任何東西都是不安全的?

答:已經(jīng)演變的架構(gòu)只是外部使用戶更容易開發(fā)、部署(因此如果我們修改核心代碼,用戶將不會與他們現(xiàn)在有的代碼進行集成,0.8.0版本和更低的版本都會遇到這個大問題)內(nèi)部任何事情都是一樣的,我們處理命令的方式,等等。

如果你正在尋找最終的安全保證,沒有。因為在Apple在沒有說任何問題之前,他可以改變主意。我們從來沒有提交過任何事情讓Apple去驗證,他們一旦選擇這樣做了,***的版本(a security review),和任何即將到來的版本,將成為他們最終的決定。

Q. I want to create an application for phonegap to access externally deployed web services via AJAX. How can i resolve the issue with the cross-domain security policy of XmlHttpRequest?

A. The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply.

(in Android,you may grant android.permission.INTERNET to your app by edit the AndroidManifest.xml)

問:我要創(chuàng)建一個通過Ajax訪問PhoneGap外部部署的Web服務應用程序,我怎樣解決XmlHttpRequest的跨域的安全策略?

答:跨域安全策略不會影響PhoneGap應用。由于html文件被webkit用 file:// protocol,安全策略并不適用。

責任編輯:佚名 來源: phonegapcn
相關推薦

2011-10-11 09:03:57

常見問題PhoneGap

2010-05-12 17:04:20

BlackBerry開

2011-01-21 14:13:10

2010-08-10 15:09:55

Flex開發(fā)

2010-04-06 17:26:26

Windows Pho

2011-04-08 13:58:52

JavaJSP

2011-09-13 13:47:56

PhoneGap AP

2011-09-13 14:40:16

PhoneGap AP

2011-09-13 16:08:58

PhoneGap AP

2010-08-31 13:49:12

CSS

2011-09-13 10:17:26

PhoneGap AP

2009-06-30 16:03:00

異常Java

2011-09-13 11:06:08

PhoneGap AP

2011-09-13 10:40:25

PhoneGap AP

2011-09-13 14:07:45

PhoneGap AP

2020-10-18 12:00:27

前端開發(fā)架構(gòu)

2012-03-06 08:47:40

Corona

2010-08-17 11:35:46

DIV CSS

2011-05-13 14:56:44

SybaseOracle

2010-09-07 09:50:35

DIVCSS
點贊
收藏

51CTO技術棧公眾號