[TIMOB-14054] iOS: Buttons on camera overlay not working when showCamera allowEditing property is true
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.0.2, Release 3.1.0, Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | camera, ios, overlay, reprod |
Reporter | Mitul Bhalia |
Assignee | Unknown |
Created | 2013-05-29T14:20:05.000+0000 |
Updated | 2018-02-28T20:04:07.000+0000 |
Description
*Problem*
When showCamera's allowEditing property is set to true, buttons added to the camera overlay are not working.
*Test case*
var win = Ti.UI.createWindow({
backgroundColor : "#FFF"
});
var button = Ti.UI.createButton({
title : "Camera",
width : 100,
height : 40
});
button.addEventListener("click", function(e) {
var view = Ti.UI.createView({
left : 0,
top : 0,
width : 320,
height : 460
});
var btnClick = Ti.UI.createButton({
title : 'Take',
width : 70,
height : 40,
bottom : 10,
left : 20
});
btnClick.addEventListener('click', function(e) {
Ti.Media.takePicture();
});
view.add(btnClick);
var btnCancel = Ti.UI.createButton({
title : 'Cancel',
width : 70,
height : 40,
bottom : 10,
right : 20
});
btnCancel.addEventListener('click', function(e) {
Ti.Media.hideCamera();
});
view.add(btnCancel);
Ti.Media.showCamera({
success : function(e) {
},
cancel : function(e) {
},
error : function(e) {
},
overlay : view,
allowEditing : true,
mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
showControls : false
});
})
win.add(button);
win.open();
Tested and confirmed on iPad iOS 6.1.3 with Ti SDK 3.1 GA and 3.2 CI. Not an Alloy issue - added standard test case.
Would be great to be addressed in a future release! The bug still exists in the 3.3 and 3.4 builds.
I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131