让url = Bundle.main.url(forResource:" MyActions_HornLounge",withExtension:" sks")
让a = SKAction(名为:" tapMousehole",from:url !, duration:5)
在模拟器中,这是有效的。 (编辑:适用于iOS 11.0,但不适用于10.3)
在设备上,找到文件并正确设置URL,但为操作返回nil。
这是某种安全/读取保护问题吗?
答案 0 :(得分:0)
Since it worked on the 11.0 simulator, I installed 11.0 beta 10 on my iPad, SKAction(named: from:) now works on my iPad device.
It seems to me there is a bug in iOS 10.3