iOS Question Design Format

fishwolf

Well-Known Member
Licensed User
Longtime User
I'm designing a simple interface with ipad mini2 retina.

when i set the position in design mode the page work fine.
when i view the page in running, some elements are out of page.

WHY ?

resize function return width and height as 960x768, ipad retina is 2048x1536
 

klaus

Expert
Licensed User
Longtime User
iOS works with a 'point' unit, which is similar to the dip values in B4A, and not pixels.
On your device the scale is 2 which means 1024x768 points.
The difference between 1024 and 960 is the height of the different bars (StatusBar, NavigationBar, ToolBar, TabBar)

Have a look at chapter 5 Screen sizes and resolutions in the B4i Beginner's Guide.
 
Last edited:
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
Ok, but on documention the scale for retina is 1, not 2 (page 99)

is it a documentation error?
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
when i use position data (for example add a object to view), i can write 100 or 100dip, is't the same?
 
Upvote 0
Top