swift - Failed to load a scene from an sks file -


i have sks file containing scene (gamescene class), , implemented initwithcoder: in gamescene. i'm trying load scene in controller way:

let file = nsbundle.mainbundle().pathforresource("gamescene", oftype: "sks")! if let scene = nskeyedunarchiver.unarchiveobjectwithfile(file) as? gamescene  {...} 

but block never executed , initwithcoder: never called.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

post - imageshack API cURL -