Tag Archives: UIDevice

Detecting orientation

I was surprised to learn today that [[UIDevice currentDevice] orientation] doesn’t always give the correct orientation. In fact, it seems to consistently fail whenever it’s called early in the app launching process. What’s up with that? What’s going wrong If you command-double click on UIDeviceOrientation, you’ll see that this type is an enum defined in […]