views:

30

answers:

1

I'm implementing Augmented Reality in my app. Is there anyway to just have a Cancel button, since taking pictures is out of the question? I know there's a similar question, but that is just overdoing it for me. I only wish to have the Cancel button, the rest can be hidden.

Thanks.

+1  A: 

You can hide the camera control and show your own overlay view using these 2 methods:

@property(nonatomic) BOOL showsCameraControls

@property(nonatomic, retain) UIView *cameraOverlayView

More here

The overlayview is easy to implement. You only need to have a button "Cancel" there and handle the event to hide the UIImagePickerController

vodkhang