[TIMOB-8619] iOS: Overlay views on camera are always displayed in portrait mode
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-04-24T11:19:05.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | Release 2.1.0, Sprint 2012-09 API |
Components | iOS |
Labels | SupportTeam, api, ipass1 |
Reporter | Federico Casali |
Assignee | Sabil Rahim |
Created | 2012-04-09T14:01:32.000+0000 |
Updated | 2017-07-26T03:32:59.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
app.js | 2012-04-09T14:01:32.000+0000 | 347 |
win3.js | 2012-04-09T14:01:32.000+0000 | 2246 |
I was able to work around this by adding a view to the overlay and setting a transform on that overlay with a rotate of 90 degrees. But it would be nice to have this working without having to add a second view. Also I noticed a different issue on the iPad. The overlay does rotate with the device however when I set the Orientation Modes to Landscape only it ignores the settings and rotates to Portrait. I have only tested this with SDK 2.0 at the moment.
Starting Progress
On iPhone or iPod the camera window does not rotate natively, How it actually does is it captures the orientation change and animate a rotation on UI Elements visible on screen ( and some time hide and make some new controls visible accordingly). This is a [sample code](https://gist.github.com/2482221) that i have used to show similar behavior. You could do something similar to get the desired behavior. Marking this ticket as invalid.
I know this issue is over two years old, but why was it marked as invalid? Surely the camera overlay not adapting properly to orientation changes is not the expected behaviour. I'm currently facing the same issue and these "workarounds" do not help. Currently using Titanium 3.4.1 (SDK 3.4.0.GA) compiling with Xcode 6.0.1 and testing on an iPhone 4 running iOS 7.1.2.
Closing ticket as invalid.