Determining the Orientation of the screen rather than the orientation of the device?

I usually have pretty good results using these methods: if(UIInterfaceOrientationIsPortrait(viewController. InterfaceOrientation)) { //do portrait work } else if(UIInterfaceOrientationIsLandscape(viewController. InterfaceOrientation)){ //do landscape work } You might also try UIDeviceOrientationIsValidInterfaceOrientation http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/macro/UIDeviceOrientationIsValidInterfaceOrientation These will only return the app's orientation, which may not be the same as the device's orientation If those don't work, you can also try UIApplication sharedApplication statusBarOrientation.

I usually have pretty good results using these methods: if(UIInterfaceOrientationIsPortrait(viewController. InterfaceOrientation)) { //do portrait work } else if(UIInterfaceOrientationIsLandscape(viewController. InterfaceOrientation)){ //do landscape work } You might also try UIDeviceOrientationIsValidInterfaceOrientation http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKitFunctionReference/Reference/reference.html#//apple_ref/c/macro/UIDeviceOrientationIsValidInterfaceOrientation These will only return the app's orientation, which may not be the same as the device's orientation.

If those don't work, you can also try UIApplication sharedApplication statusBarOrientation.

5.2.1 The specification must provide data that describes the physical orientation in space of the device. 5.2.2 The specification must provide data that describes the motion in space of the device. 5.2.3 The specification must allow Web applications to register for changes in the device's orientation.

5.2.4 The specification must be agnostic to the underlying sources of orientation and motion data. 5.2.5 The specification must use the existing DOM event framework. This section is non-normative.

With the screen horizontal. Approximately vertical in front of them. Out of the back of the screen.

Is as follows. Represented by the following rotation matrix.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions