iPad device orientation is null?
Posted
by Brodie4598
on Stack Overflow
See other posts from Stack Overflow
or by Brodie4598
Published on 2010-05-31T19:44:38Z
Indexed on
2010/05/31
20:03 UTC
Read the original article
Hit count: 222
([UIDevice currentDevice].orientation);
using the above code in my app, all i get is 0 (unknown)
is there something thats going wrong here? Seems pretty straightforward
edit: more research led me to the problem with using device orientation early in the app, which I am doing. However when I instead use interfaceOrientation, it always returns 1 (portrait)
© Stack Overflow or respective owner