device-orientation
Stopping surface view from rotating when displaying camera preview
I have a surface view displaying a camera preview which looks good in landscape mode, but when I rotate my phone to portrait the surface view rotates and the camera preview is on its side which looks[详细]
2023-03-04 18:22 分类:问答Is it possible force UI autorotation in iOS?
I have an auto-rotating view which should be only horizontal at some specific time. I tried changing return value of -shouldAutorotateToInterfaceOrientation: for specific time, but it didn\'t work as[详细]
2023-02-23 22:54 分类:问答Creating an iPad Alternative Landscape Interface Issues
During my last projects I have being using some techniques to create an alternative landscape view when developing my oriented UIViewController subclasses, such as AutosizingMask properties and adding[详细]
2023-02-23 12:24 分类:问答Device rotation manually rotating views
I am manually rotating a few views and subviews depending on orientation using this method: CGAffineTransform landscapeTransform = CGAffineTransformMakeRotation(0);[详细]
2023-02-22 11:01 分类:问答iPhone's UITabBar as part of application window; problems when rotating device
I have an iPhone application that\'s using Navigation Controller to display the top bar (with title and back button, and such...).[详细]
2023-02-15 12:31 分类:问答How to prevent gaining additional width after orientation change in mobile-safari
In Mobile Safari on my iPad I get some weird behaviour after changing the device orientation. Here is my test file:[详细]
2023-02-15 07:51 分类:问答Evaluate orientationEvent and setting a value?
If I h开发者_如何学Cave an onChange function firing when an orientation change has happened, how do I set a value within the onChange that will update a jquery selector.For instance:[详细]
2023-02-15 00:30 分类:问答Evaluate orientationEvent at onload?
I\'m working on a web app and it requires me to alter content based on the orientationEvent. It\'s working well so far, changing and setting content as I change orientation.However, I need the orient开[详细]
2023-02-14 14:15 分类:问答Android: understanding the function remapCoordinateSystem
I have been trying to understand these 2 lines of code SensorManager.getRotationMatrix(RTmp, I, grav, mag);[详细]
2023-02-13 17:40 分类:问答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 portrait orientation, and some should autorotate freely. If yo[详细]
2023-02-10 21:40 分类:问答