Checking device width

So, I got an actor I want placed in different positions depending on device width (iPhone 4 vs 5).
Should it change if device.width > 960 or 480 ?

Thanks in advance

Best Answer

  • ArmellineArmelline Posts: 5,456
    Accepted Answer
    1. At least that's always worked for me.

    If you're doing multiple versions including Android, you can also do it based on aspect ratio by dividing the width/height.

Answers

  • LyboTechLyboTech Member Posts: 135

    @Armelline‌ Thanks for quick reply buddy! At the moment only looking to do the iPhone, but thanks. I'll keep in mind, have a nice day :smile:

  • ArmellineArmelline Member, PRO Posts: 5,456

    Weird thing that happened to my post when you accepted the answer :D Oh well, it basically said 480, for anyone else looking.

Sign In or Register to comment.