Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlireza C
691 PointsProblem with new version of xCode
Your project is not compatible with new version of xCode. When I want to write code in the TitleScene.m I have problem. In your video you say to write code in the init section but in the new xCode it has just didMoveToView as a place to setup a scene. Can you help me?
1 Answer
Radu Albastroiu
17,498 PointsHI, I'm not entirely sure if this is the best approach but it worked for me. I deleted the "didMoveToView" method and created "initWithSize" as Amit uses in the video. Also to make this work you have to go into your GameViewController and change the content of ViewDidLoad and init the first scene using sceneWithSize using the skView bounds. (EX: TitleScene *scene = [TitleScene sceneWithSize:skView.bounds.size];)