ios - Cannot find an initializer for type -


i'm getting error saying

cannot find initializer type 'smileyscene' accepts argument list of type '(filenamed: string)'

i'm new swift please help.

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) 

the compiler telling type smileyscene not declare initializer arguments trying use initialize smileyscene constant.

make sure implementation of smileyscene contains appropriate initializer , initializer visible "the outside world." is, initializer should not marked private.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -