Get Device Height In Javascript From Non Full Screen UIWebView
I try to distinguish an Iphone 5 device in a non full screen UIWebview (320x216) from javascript. I am using the screen height as switch as that seems the only way to do this in ja
Solution 1:
I know you said you tried this already but screen.availHeight
returns 568 for an iPhone 5, even when the actual UIWebView
frame is much smaller (i.e. 216). I am on iOS 7.
Solution 2:
Did u used this document.write("Total Height: " + screen.height);
screen.height
,
The height property returns the total height of the visitor's screen, in pixels.
Post a Comment for "Get Device Height In Javascript From Non Full Screen UIWebView"