I'm developing a basic game for IOS using SpriteKit. iPhone devices come in many shapes and colours. The former of which is giving me a bit of a headache. Different sized screens.
This is a two part question. Firstly
What solutions have other people implemented to achieve a uniform layout over multiple display sizes?
The current solution I'm looking at adopting is to find the device type as suggested in one of the solutions here Scale sprite kit game for all devices, I'll be implementing this through using Alessandro Ornano solution to the problem How to determine the current iPhone/device model?. Then changing the size and the position of game objects depending on device type.
Secondly:
Is it possible to have a function/method run only on application installation. Do apple allow this. If so where would I make the call to the method?