Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [Tier 2] GetMaximumDeviceWidth and GetMaximumDeviceHeight do not work with iPad Pro

Author
Message
Jerry McGuire
7
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 30th Jan 2018 03:04
They throw the dimensions of the regular iPad: 1536*2048
What could be going on?
iMac Book Pro, MacOS 10.12.4, Xcode 9.0.1;
iPhone 6, iOS 9.35; iPhone 5s, iOS 9.35; iPad (3rd gen), iOS 9.35;

Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2015;
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 30th Jan 2018 06:13
What does getdevicewidth()/Height() return?
Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 30th Jan 2018 10:03 Edited at: 30th Jan 2018 10:24
The functions report that resolution because the max resolution of the "regular" IPAD IS 1536 x 2048 So is the smallest IPAD pro.

Apples display info
http://iosres.com/

iPad Air 2 1536 x 2048
iPad Mini 4 1536 x 2048
iPad Pro (9.7-inch)1536 x 2048
iPad Pro 10.5-inch 2224 x 1668
iPad Pro 12.9-inch 2048 x 2732

What were you expecting it to be? Or are you saying the Pro devices over 10.5inch also report the lower resolution??
Jerry McGuire
7
Years of Service
User Offline
Joined: 25th Mar 2017
Location:
Posted: 30th Jan 2018 18:39
Hi blink0k, I get the same height whether I use getmaxdeviceheight() or getdeviceheight(): 2048. Same thing happens with width, they both report: 1536.

Hi Bengismo, I'm actually using the large iPad Pro 12.9 (2048x2732), and this is the one reporting the 1536x2048 resolution.
I had a look at the "Apples display info" link you wrote. Seems very interesting though I have no idea how to interpret it
That been said, even the numbers reported in that table don't match the ones I get from the commands (1536x2048)...
I was expecting them to be 2048x2732.
What else could it be?
iMac Book Pro, MacOS 10.12.4, Xcode 9.0.1;
iPhone 6, iOS 9.35; iPhone 5s, iOS 9.35; iPad (3rd gen), iOS 9.35;

Dell Precision T7400, Windows 7 Professional 64bit, Visual Studio Community 2015;

Login to post a reply

Server time is: 2024-11-24 02:43:07
Your offset time is: 2024-11-24 02:43:07