I was curious to find out if there is a way to determine the screen orientation on the iPhone / iPad.
Currently, I find that I am setting a member variable when this message is called:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
self.orientation = interfaceOrientation;
return YES;
}
... which feels something that I should be able to query as a state, and not track it when it changes.
source
share