找不到类型的初始值设定项

Cannot find an initializer for type

我收到一条错误消息

Cannot find an initializer for type 'SmileyScene' that accepts an argument list of type '(fileNamed: String)'

我是 swift 的新手,请帮忙。

import UIKit
import SpriteKit

introLabel?.runAction(fadeOut, completion: {
let doors = SKTransition.doorwayWithDuration(2.0)
let smileyScene = SmileyScene(fileNamed: "SmileyScene")
self.view?.presentScene(smileyScene, transition: doors)

编译器告诉您 SmileyScene 类型没有使用您试图用来初始化 smileyScene 常量的参数声明初始化器。

确保 SmileyScene 的实现包含适当的初始值设定项,并且初始值设定项对 "the outside world." 可见,也就是说,初始值设定项不应标记为 private