iOS Question DeviceAproximateScreenSize reports incorrect screen size. Same with Activity

drponciano

Member
Licensed User
Longtime 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
Longtime 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.
 
Upvote 0

drponciano

Member
Licensed User
Longtime 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
 
Upvote 0

drponciano

Member
Licensed User
Longtime 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?
 
Upvote 0
Top