我最近更新到Xcode 7 Beta,现在我收到一条错误消息"实例成员'视图'不能用于第5行的'GameScene'类型.任何人都有任何想法如何解决这个问题?另外,如果你想要额外的帮助,请参阅我的另一个问题:ConvertPointToView函数无法在Swift Xcode 7 Beta中运行
import SpriteKit
class GameScene: SKScene {
var titleLabel: StandardLabel = StandardLabel(x: 0, y: 0, width: 250, height: 80, doCenter: true, text: "Baore", textColor: UIColor.redColor(), backgroundColor: UIColor(white: 0, alpha: 0), font: "Futura-CondensedExtraBold", fontSize: 80, border: false, sceneWidth: view.scene.frame.maxX)
override func didMoveToView(view: SKView) {
self.scene?.size = StandardScene.size
self.view?.addSubview(titleLabel)
}
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
for touch in (touches ) {
let location = touch.locationInNode(self)
}
}
override func update(currentTime: CFTimeInterval) {
} …Run Code Online (Sandbox Code Playgroud)