0
我打開spritekit應用樣品比添加該代碼SKShapeNode正在出現錯誤尺寸
override func didMoveToView(view: SKView) {
/* Setup your scene here */
var shapeNode = SKShapeNode(rect: view.frame)
shapeNode.strokeColor = UIColor.redColor()
shapeNode.lineWidth = 4;
shapeNode.position = CGPoint(x: 0, y: 0)
self.addChild(shapeNode)
}
它只是嘗試添加在主視圖4width邊框,但不是那個產量,
所以我究竟做錯了什麼?