I am trying to devise a theory for working out which device the game is running on for iOS. The theory also requires working with the 'fit outside' setting for iOS.
Basically, my game is a puzzle game and each level has a fixed size. I figure it would work best for me to cut the edge off and just move the camera for each device. But where I want to move my camera will depend on which device is being used, ie, how wide the screen is. So on iPhone 4 I would want it to return a width value of 960, and on iPad 1136.
Now, when I go to get this property, I go to the "Storyboard Controls > Frame" and then I'm not sure if I should choose "width" or "virtual width"? Which one will give me the size of the window, not the size of the frame?
Or otherwise, will I have to use the "X coordinate of left / right visible edge" and subtract them from each other? I was hoping the window size was already stored somewhere though.
Unless there is a better way to get the width of the window?