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 trial
Shaun Kelly
5,648 PointsiOS Simulator for Xcode
I'm having problems with my simulator in Xcode and I need help. Firstly if I use the following code in Xcode and test it out by moving the SKSpriteNode called "HumanPaddleOne" the coordinated in the simulator are reverse so if your touching the screen at the bottom and moving it around it appears at the top. And I don't know why ?
SKSpriteNode *HumanPaddleOne = [SKSpriteNode spriteNodeWithImageNamed:@"blue_paddle"];
HumanPaddleOne.position = CGPointMake(135, 40);
HumanPaddleOne.size = CGSizeMake(60, 60);
HumanPaddleOne.name = @"HumanPaddleOne";
[self addChild:HumanPaddleOne];
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
SKSpriteNode *HumanPaddleOne = (SKSpriteNode*)[self childNodeWithName:@"HumanPaddleOne"];
UITouch *Drag = [[event allTouches] anyObject];
HumanPaddleOne.position = [Drag locationInView:self.view];
}
And secondly If I have an image thats the size of the entire screen there seems to be a white margin on the right and bottom side only in the simulator? link to an image at the bottom.
http://shaun105.deviantart.com/art/iOS-Simulator-Screen-Shot-507918227