iOS Question DeviceAproximateScreenSize reports incorrect screen size. Same with Activity

drponciano

Member
Licensed User
When running my program on a iPadPro 13in I get DeviceAproximateScreenSize with 8 inches instead of 13. Is that my mistake or iOs's? With iPhone, iPadmini, etc. the sizes are correct.
 

BillMeyer

Well-Known Member
Licensed User
Look at settings->display and brightness->display zoom - check standard or zoomed.

This is a long shot - but could very well be the problem.
 

drponciano

Member
Licensed User
What is the output of:
B4X:
Log(GetDeviceLayoutValues)
Log(GetDeviceLayoutValues.NonnormalizedScale)
Log(GetDeviceLayoutValues.DeviceApproximateScreenSize)
iPhone 5s
For Erel
568 x 320 (normalized scale)
2
4.074616546375867
End for Erel

iPadMini Retina
For Erel
1024 x 768 (normalized scale)
2
8
End for Erel


iPadPro 13 in
For Erel
1024 x 768 (normalized scale)
2
8
End for Erel
 

drponciano

Member
Licensed User
I've further checked it and currently your app will always run in display compatibility mode on the iPad Pro. Need to update B4i to use story board instead of launch images in order to support the native resolution of the iPad Pro. This is planned for the next major update.
Thanks for your answer Erel. Any intermediate solution you may think meanwhile?
 

drponciano

Member
Licensed User
You don't need to do anything special. Your app will work, it just runs in a display compatibility mode.

There is no simple way to make it run in full resolution.
Ok. Thanks. I’ll wait for next release of B4i.
 
Top