Project: titanium
Issue TIMOB-17662: iOS8: Feature Request to do not allow the CameraPreview to rotate
h6.Feature Request Feature Request to do not allow the CameraPreview to rotate. Add the following method inside @implementation TiImagePickerController {code} - (BOOL)shouldAutorotate { return NO; } {code} - https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/MediaModule.m#L65 h6.Sample code {code} var win = Ti.UI.createWindow({ backgroundColor: 'white' }); var button = Ti.UI.createButton({ title: 'Open', top: 50, left: 10, right: 10, height: 50 }); win.add(button); win.open(); button.addEventListener('click', function() { Ti.API.info('click'); Ti.Media.showCamera({ success: success, error: error, saveToPhotoGallery: false, allowEditing: false, mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO], showControls: true, autohide: false }); function success(e) { Ti.API.info('Success'); } function error(e) { Ti.API.info('Error'); } }); {code}
Story points: 3