eugene
eugene

Reputation: 41765

(iphone) is it possible to change camera view?

I'd like to take a sneak picture while user is playing my app and show the pic after a certain time period.

If that's not possible, I'd like to decrease the camera view size.

Is that possible?

Thank you

Upvotes: 0

Views: 284

Answers (3)

Wodjefer
Wodjefer

Reputation: 345

     UIImagePicker *imagePicker.cameraViewTransform = 
                                 CGAffineTransformScale(imagePicker.cameraViewTransform,    1.0f, .5f);

You can change the by using this one.

Upvotes: 1

WrightsCS
WrightsCS

Reputation: 50727

I dont think Apple will allow you to "sneak a pic" of the user. Your app may or may not get rejected, you may want to think of another way to allow the app to take snap of the user, maybe an alert, much like the Location dialog, asking the user to allow the action.

Upvotes: 1

shabbirv
shabbirv

Reputation: 9098

It is completely possible. Just have a UIView overlay your UIImagePickerView. Use the -takePicture method to randomly take a picture without them pressing anything.

Upvotes: 0

Related Questions