Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8619] iOS: Overlay views on camera are always displayed in portrait mode

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-04-24T11:19:05.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sRelease 2.1.0, Sprint 2012-09 API
ComponentsiOS
LabelsSupportTeam, api, ipass1
ReporterFederico Casali
AssigneeSabil Rahim
Created2012-04-09T14:01:32.000+0000
Updated2017-07-26T03:32:59.000+0000

Description

Attachments

FileDateSize
app.js2012-04-09T14:01:32.000+0000347
win3.js2012-04-09T14:01:32.000+00002246

Comments

  1. Ivan Markovic 2012-04-10

    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.
  2. Sabil Rahim 2012-04-23

    Starting Progress
  3. Sabil Rahim 2012-04-24

    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.
  4. Robert Gillman 2014-10-20

    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.
  5. Lee Morris 2017-07-26

    Closing ticket as invalid.

JSON Source