Hi guys,
I'm trying to work in Sprite Kit and am finding the screen sizing incredibly frustrating. If I start with a blank scene, the self.frame.size.width returns 1024 on iPhone 6, not the expected 1334 for pixels, or 667 in points (points being another mess of confusion).
Nowhere in the code is there a spot that sets the frame size to 1024, where does this value come from? Is querying the frame not the right way to get a screens size?
I know I can manually set it correctly in the viewWillLayoutSubviews method but I'm trying to figure out where it comes from. Any help is greatly appreciated. And yes, I've read through Apples sprite kit programming guide which isn't helpful with regards to creating graphics or managing screen sizes.
I'm trying to work in Sprite Kit and am finding the screen sizing incredibly frustrating. If I start with a blank scene, the self.frame.size.width returns 1024 on iPhone 6, not the expected 1334 for pixels, or 667 in points (points being another mess of confusion).
Nowhere in the code is there a spot that sets the frame size to 1024, where does this value come from? Is querying the frame not the right way to get a screens size?
I know I can manually set it correctly in the viewWillLayoutSubviews method but I'm trying to figure out where it comes from. Any help is greatly appreciated. And yes, I've read through Apples sprite kit programming guide which isn't helpful with regards to creating graphics or managing screen sizes.