Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23354] iOS: Camera with overlay, zoom control visible with showControls = false

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNot Our Bug
Resolution Date2016-05-12T00:07:13.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterTim Poulsen (ACV)
AssigneeAngel Petkov
Created2016-05-02T16:36:36.000+0000
Updated2017-03-24T18:54:17.000+0000

Description

Using code like the following, our app creates an overlay View then opens the camera. Even though we have showControls set to false, when users pinch to zoom, the zoom control is displayed.
Ti.Media.showCamera({
  overlay: overlay.getView(),
  showControls: false,
  autohide: false,
  success: doCameraSuccess,
  cancel: doCameraCancel,
  error: doCameraError,
  saveToPhotoGallery: false,
  allowEditing: false,
  mediaTypes: Ti.Media.MEDIA_TYPE_PHOTO
});
See the attached sample project (though this effect is seen whenever the camera is opened with an overlay)

Attachments

FileDateSize
app.js2016-05-02T16:35:29.000+00002767
Screen Shot 2016-05-02 at 12.34.15 PM.png2016-05-02T16:34:59.000+0000564748

Comments

  1. Sharif AbuDarda 2016-05-10

    Hello, I have tested the issue you have reported. I was able to reproduce the issue in iOS 9.2 device. I used the sample code you have provided. Not sure this should disable the zoom control or not. This is possibly a bug in the platform. Regards, Sharif.
  2. Chee Kiat Ng 2016-05-11

    showControls is equivalent to iOS native UIImagePickerController:showCameraControls so this is possibly a native issue. [~apetkov] Can you create a native app in Xcode to verify if it's a native behavior? http://www.musicalgeometry.com/?p=821 for your reference. And this here: http://stackoverflow.com/questions/30288950/uiimagepickercontroller-shows-black-bar-when-zooming-is-this-a-bug-in-ios Although it's talking about a different bug, its showCameraControls: false yet the zoom control is seen in the screenshot.
  3. Angel Petkov 2016-05-11

    This is indeed a native problem, i created a native application and the zoom bar still appears regardless. I couldn't find any work-arounds or information about the issue by apple, there are some posts on stack [overflow](http://stackoverflow.com/search?q=Remove+Zoom+slider+in+UIImagePickerController) however all unanswered
  4. Chee Kiat Ng 2016-05-11

    Thank you [~apetkov]. Resolving ticket.
  5. Lee Morris 2017-03-24

    Closing ticket with reference to the previous comments.

JSON Source