maor10
maor10

Reputation: 1784

How do I make a UIImagePickerController camera not take up the whole screen?

I have a tab bar controller. I want to have a camera always open on one of the tabs, but underneath the camera, you can still see the rest of the tabs. How do I make it so that the camera doesn't take up the whole screen, but is just above the tab bar?

(By the way, to be specific, I'm not actually using a UIIMagePickerController, but the ZBarReader) Thank you

Upvotes: 0

Views: 402

Answers (2)

maor10
maor10

Reputation: 1784

The comment was right: Did you try to add it as a sub view to a superview that itself is smaller than the screen?

Upvotes: 1

tagyro
tagyro

Reputation: 1679

As far as I know you can't. You should use AVCaptureSession - check out Erica Sadun iOS 5 Cookbook - Chapter 7 and it should be pretty easy.

Upvotes: 0

Related Questions