Top "Device-orientation" questions

Use device-orientation for questions related to coding for both landscape and portrait modes of a device which can be rotated by the user

How to constrain autorotation to a single orientation for some views, while allowing all orientations on others?

This question is about iOS device rotation and multiple controlled views in a UINavigationController. Some views should be constrained to …

objective-c cocoa-touch uiviewcontroller uinavigationcontroller device-orientation
How do I detect orientation on app launch for splash screen animation on iPad!

Hi I have an app and I have two *.pngs for default splash screen: Default-Landscape.png Default-Portrait.png What I …

iphone uikit uiinterfaceorientation uidevice device-orientation
Lock device orientation - React Native (Android)

I'm using React Native 0.29 and developing for Android. I'm trying to lock the device orientation. What I need is to …

android react-native orientation device-orientation
How do I get DeviceOrientationEvent and DeviceMotionEvent to work on Safari?

I'm trying to implement DeviceOrientationEvent and DeviceMotionEvent on my website for a 3D effect. However, the console doesn't log any …

javascript safari mobile-safari device-orientation devicemotion
Storyboards orientation support for xCode 4.2?

I upgraded to xCode 4.2 and it's new Storyboards feature. However, could not find a way to support both portrait and …

iphone landscape storyboard xcode4.2 device-orientation
jquerymobile: determine device orientation

$(window).bind("orientationchange", function(e){ var ow = (e.orientation=="portrait" ? "縦" : "横"); alert("端末の向きは "+ow+" です。"); }); using the above code, i could determine if …

jquery-mobile device-orientation
How to present a view controller in portrait or landscape, in application that is portrait-only

I have an iPhone application most of which is portrait-only, but with one view controller (a video player screen) that …

ios uinavigationcontroller ios8 device-orientation
Implement a Kalman filter to smooth data from deviceOrientation API

I'm trying to smooth the data I'm getting from the deviceOrientation API to make a Google Cardboard application in the …

javascript device-orientation kalman-filter virtual-reality
Saving some data on orientation change in Android

As far as I've understood, your Android activity will be recreated for the new orientation on any orientation changes. Is …

android device-orientation orientation-changes
Problem with camera when orientation changes

I'm doing an application that calls a different activity when the device orientation changes from landscape to portrait or viceversa. …

android android-activity android-camera device-orientation