Search found 1 match

by ronnysharma
Sat Apr 28, 2018 2:45 pm
Forum: iOS Deployment
Topic: How to identify iPhone X
Replies: 14
Views: 24249

Re: How to identify iPhone X


Try this:

Function isIPhoneX
local tIs iPhone X,tScreenRect,tScreenHeight,tScreenWidth
put false into tIs iPhone
X
put the ScreenRect into tScreenRect
if word 1 of the machine is "iPhone" and MobilePixelDensity() = 3 then
put item 3 of tScreenRect into tScreenWidth
put item 4 of ...