0

I have my application for iPad and its in landscape mode only . I want to open camera in portrait mode in upper half of the screen, and in the lower half i want to add some IBOutlets. FYI in projetc's setting supported interface orientations are Landscape left and landscape right only.

I tried the solution given on link Show camera on only half of the screen as it is and in didfinishPickingMediaWithInfo i removed the imagePickerController.view

  1. Camera opens up in full screen :(
  2. How can i open camera in portrait.
  3. didfinishPickingMediaWithInfo returns null in UIImagePickerControllerEditedImage. Please help.
Community
  • 1
  • 1
iosDeveloper
  • 169
  • 2
  • 8

1 Answers1

0

I think you won't be able to achieve desired behaviour with UIImagePickerController since it is a special kind of controller. You can take a look in media capture guide. You can then create AVCaptureVideoPreviewLayer with your own size and present it how you like though you will need to write your own code for capturing images.

This is the Apple doc for that. http://developer.apple.com/library/mac/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture.html

This is a good presentation with code snippets. http://www.slideshare.net/invalidname/capturing-stills-sounds-and-scenes-with-av-foundation

You might also find this question useful. AVCaptureVideoPreviewLayer orientation - need landscape

Community
  • 1
  • 1
user1264176
  • 1,118
  • 1
  • 9
  • 26