Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2013 Sprint 21, 2013 Sprint 21 API, Release 3.2.0
-
Component/s: iOS
-
Labels:
-
Environment:
SDK 3.1.3.RC (updated version)
iOS 7 GM seed on iPhone 4S
Description
On iOS7, Ti.Media.showCamera is showing the status bar over the camera view, partially covering the flash and camera-switch controllers.
Steps to reproduce
- Create a new app: titanium create -p ios -n testCamera --id test.camera -d .
- For app.js use the following, taken from the docs:
var win = Titanium.UI.createWindow({
backgroundColor: '#fff'
});
win.addEventListener('click', function() {
Titanium.Media.showCamera({
success: function(event) {
// called when media returned from the camera
Ti.API.debug('Our type was: ' + event.mediaType);
if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {
var imageView = Ti.UI.createImageView({
width: win.width,
height: win.height,
image: event.media
});
win.add(imageView);
} else {
alert("got the wrong type back =" + event.mediaType);
}
},
cancel: function() {
// called when user cancels taking a picture
},
error: function(error) {
// called when there's an error
var a = Titanium.UI.createAlertDialog({
title: 'Camera'
});
if (error.code == Titanium.Media.NO_CAMERA) {
a.setMessage('Please run this test on device');
} else {
a.setMessage('Unexpected error: ' + error.code);
}
a.show();
},
saveToPhotoGallery: true,
allowEditing: true,
mediaTypes: [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO]
});
});
win.open();
- Run the app on the device: titanium build -p ios -T device
- Tap the window to show the camera
- Notice the status bar showing over the camera view as in attached screenshot