我正在开发基于精灵工具包的游戏。当我在模拟器中运行它时,一切正常。但是,当我在mu iPod和我的iPhone上运行它时,它显示为空白。我已经放了一些println来跟踪问题所在。在模拟器上,它显示了所有这些。在iOS设备上,它显示除了GameSceneMain Found之外的所有内容。
感谢您的帮助。
override func viewDidLoad() {
super.viewDidLoad()
println("View Did Load")
if let scene = GameSceneMain.unarchiveFromFile("GameSceneMain") as? SKScene {
// Configure the view.
println("GameSceneMain Found")
let skView = self.view as SKView
skView.showsFPS = true
skView.showsNodeCount = true
/* Sprite Kit applies additional optimizations to improve rendering performance */
skView.ignoresSiblingOrder = true
/* Set the scale mode to scale to fit the window */
scene.scaleMode = .AspectFill
skView.presentScene(scene)
}
println("Past scene attempt block")
}