iOS Question Screen sizes

klaus

Expert
Licensed User
Longtime User
How are the different screen sizes managed by iOS ?
I have an application with the 'standard' iPhone screen size 320 * 568 / 160 in the Designer.
On my iPhone 6 with a screen of 750×1334 it is OK horizontally but vertically it must be adjusted.
What about tablets or iPhone 6+ ?
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
The main difference here is that you don't need 'dip' units in iOS. The OS does it for you.

All the sizes are already normalized (to a scale of 1.0).

You can see the different screen sizes in the abstract designer menu:

SS-2014-11-02_14.16.21.png


Developers need to handle it in the same way they do in B4A. Mainly with anchors, auto scale, designer script, variants and code.

Currently auto scale and designer script are not supported. However they are high on the list...
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Note that you can use dip unit in B4i.
That's what I do, by habit :).

The reason to keep the DipToCurrent function in B4i is only for compatibility with B4A ?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I'm coming back to this thread because my findings in the first post are no more true since B4i version 1.00 (see this thread).
Developers need to handle it in the same way they do in B4A. Mainly with anchors, auto scale, designer script, variants and code.
If I understand well, these functions are B4i specific (with much more freedom) and not Apple 'standard' (less freedom) ?
 
Upvote 0
Top