Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17662

iOS8: Feature Request to do not allow the CameraPreview to rotate

    Details

    • Story Points:
      3
    • Sprint:
      2014 Sprint 18 SDK

      Description

      Feature Request

      Feature Request to do not allow the CameraPreview to rotate. Add the following method inside @implementation TiImagePickerController

      - (BOOL)shouldAutorotate
      {
          return NO;
      }
      

      Sample 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');
          }
      });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jalter Jon Alter
                Reporter:
                egomez Eduardo Gomez (Inactive)
                Reviewer:
                Vishal Duggal (Inactive)
                Tester:
                Olga Romero
              • Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code