小编Rax*_*zon的帖子

我是否需要在iTunes Connect中启用"多人游戏兼容性"才能让游戏中心排行榜全球运作?

我有一个功能正常的Sprite Kit Game Center排行榜.如果我的游戏不是多人游戏,但是有全球排行榜,是否有必要启用"多人游戏兼容性"?

itunesconnect sprite-kit game-center-leaderboard xcode6

5
推荐指数
1
解决办法
940
查看次数

你如何给 SpriteKit 添加背景音乐?

我尝试这样做:

let soundFilePath = NSBundle.mainBundle().pathForResource("GL006_SNES_Victory_loop.aif", ofType: "GL006_SNES_Victory_loop.aif")
let soundFileURL = NSURL(fileURLWithPath: soundFilePath!)
let player = AVAudioPlayer(contentsOfURL: soundFileURL, fileTypeHint: nil)
player.numberOfLoops = -1 //infinite
player.play()
Run Code Online (Sandbox Code Playgroud)

我把这段代码放在didMoveToView函数中,并且import AVFoundation放在我代码的顶部。我收到错误: Call can throw, but it is not marked with 'try' and the error is not handled

先感谢您!

background-music ios sprite-kit swift swift2

4
推荐指数
1
解决办法
3171
查看次数

非法配置Xcode 6.4

什么是非法配置,我该如何解决?

我有3:

启动屏幕可能不使用IBUIExitPlace Holder的实例.

启动屏幕可能只有一个顶级对象,它必须是UIView或一种UIViewController.

启动屏幕可能不使用IBUIStoryboardEntryPointIndicator的实例.

我正在将我的Swift 2代码转换为Swift 1.2,因此我可以将我的应用程序上传到应用程序商店.

提前致谢!

xcode

1
推荐指数
1
解决办法
2093
查看次数