Sidwyn Koh
Sidwyn Koh

Reputation: 1742

Simplifying UIImagePickerController

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.

Upvotes: 1

Views: 249

Answers (1)

vodkhang
vodkhang

Reputation: 18741

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

Upvotes: 1

Related Questions