在iPhone上將畫布連接到文檔時出現問題。運行時:cordova編譯然後:cordova啓動瀏覽器畫布被添加並渲染罰款。使用xcode和ios模擬器,應用程序將啓動,但看起來畫布從未呈現。我在這裏做錯了什麼?畫布將不會呈現在與科爾多瓦和pixi.js的iPhone上
onDeviceReady: function() {
this.receivedEvent('deviceready');
var Container = PIXI.Container,
autoDetectRenderer = PIXI.autoDetectRenderer,
loader = PIXI.loader,
resources = PIXI.loader.resources,
Sprite = PIXI.Sprite,
Rectangle = PIXI.Rectangle,
TextureCache = PIXI.TextureCache,
Graphics = PIXI.Graphics,
Text = PIXI.Text,
ParticleContainer = PIXI.ParticleContainer,
stage,
renderer;
stage = new Container();
renderer = new autoDetectRenderer(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.view);
},