[TIMOB-23354] iOS: Camera with overlay, zoom control visible with showControls = false
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2016-05-12T00:07:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Tim Poulsen (ACV) |
Assignee | Angel Petkov |
Created | 2016-05-02T16:36:36.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
app.js | 2016-05-02T16:35:29.000+0000 | 2767 |
Screen Shot 2016-05-02 at 12.34.15 PM.png | 2016-05-02T16:34:59.000+0000 | 564748 |
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.
showControls
is equivalent to iOS nativeUIImagePickerController: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, itsshowCameraControls: false
yet the zoom control is seen in the screenshot.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
Thank you [~apetkov]. Resolving ticket.
Closing ticket with reference to the previous comments.