Reputation: 17
When I use Ti.Media.showCamera()
with an overlay, the camera frame is fixed at the top so it remains a black stripe at the bottom.
But I need the camera's image was in full screen, and not only fastened at the top
I can not move it in any way.. does anyone know a solution?
This is my code:
Ti.Media.showCamera({
allowEditing : false,
overlay : $.overlay,//overlayView,
showControls : false,
mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],
autohide : false,
transform: Ti.UI.create2DMatrix().scale(1)
});
Upvotes: 0
Views: 234
Reputation: 921
So, this used to work ok in previous tiSDKs and/or iOS SDK targets. Titanium uses an OLD method for its camera that apple has been trying to get rid of. With iOS 10, apple removed the hook that Titanium was using to work around all this.
It was reported and, right or wrong, was dismissed as not a titanium problem.(https://jira.appcelerator.org/browse/TIMOB-24036)
You can use Mike Fogg's module (https://github.com/mikefogg/SquareCamera) to achieve the look you once had, because it uses the appropriate foundation classes for its media work.
Upvotes: 1