I just gave this a try, and worked.
- Started with single view app.
- Dragged in myScene.m / .h from another sprite kit app into my project.
- In storyboard dragged in a UIView, and set class to SKView in storyboard.
- Created an outlet from that to the VC class (in my case called it myGame)
- Added the #import in the VC class
- Also copied from the demo project viewDidLoad
This is the only change i made
-(void)viewDidLoad {
[super viewDidLoad];
// Next line is all I changed...
SKView * skView = (SKView *)self.view;
skView.showsFPS = YES;
skView.showsNodeCount = YES;
// Create and configure the scene.
SKScene * scene = [MyScene sceneWithSize:skView.bounds.size];
scene.scaleMode = SKSceneScaleModeAspectFill;
// Present the scene.
[skView presentScene:scene];
}
I added in some other UIKit to kind show how its a little SK Game in a view.
Not sure if this is the best way but I hope I answers your question.
I agree with lionserdar, and you should check out UIKit Dynamics instead.