Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我打开我的 Xcode 项目已经一年了,我发现有一些错误。
现在我的音频代码有问题。它在一年前运行良好,但现在它显示“致命错误:在展开可选值时意外发现 nil”
样本
尝试做这样的事情
self.run(SKAction.playSoundFileNamed("MexicanPause.wav", waitForCompletion: false))
我不知道你在哪里尝试实现你的代码,但这可以添加touchesBegan或什至touchesEnded.
touchesBegan
touchesEnded