我SourceKitService结束,当我实现这个方法:的Xcode 6精灵套件 - SourceKitService终止
override func touchesBegan(touches: NSSet!, withEvent event: UIEvent!)
如果删除!,它的工作原理。 但是当时我的代码中出现错误。 全码:
override func touchesBegan(touches: NSSet!, withEvent event: UIEvent!) {
for touch: AnyObject in touches {
let location = touch.locationInNode(self)
if nodeAtPoint(location).name == "plane" {
println("plane touched")
}
}
}
这个问题似乎是题外话题,因为它是关于测试版软件的错误。 – Kreiri
所以我们不能在xcode 6中实现func touchesBegan? – user3722523
@ user3722523你可以,但是只有在bug修复之前没有语法突出显示 –