Detecting iPhone 5 or 4? How to move accordingly?

Hello

Is there a simple demo anywhere, where I can see how to detect screen size of the iPhone?
I just need to adjust the position of the buttons, but can't seem to find a thing that does this. Well in GS viewer it doesn't when I change the size using custom resolution.

Thanks

Comments

  • mataruamatarua Auckland, New ZealandMember Posts: 854
    edited September 2013
    You just use a rule that says.

    Landscape.

    iPhone 5

    If devices screen width = 568.

    Change attribute self.position.X to 50


    iPhone 4

    If devices screen width = 480.

    Change attribute self.position.X to 100


    It's that simple :)
Sign In or Register to comment.