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
Post a Comment