iPad orientation change issue
Hey there, I'm using the same example from KitchenKink for orientarion purpose, in iPhone it work great, but no on Ipad application.
Anyone have a similar issue ? or already noted this and found some fix ?.
Thanks in advanced, here's the code anyway:
http://gist.github.com/421361
2 Answers
-
Accepted Answer
The orientation change event is being fired, but the properties of the event are a bit different on iPad.
e.orientation
is the piece of data that will be useful - it is an integer which represents one of the available 4 orientations:- e.orientation == 1 (portrait)
- e.orientation == 2 (upside down)
- e.orientation == 3 (landscape, home button right)
- e.orientation == 4 (landscape, home button left)
-
Anyone got this issue get?