user2552751
user2552751

Reputation: 239

how to change retake and use photo buttons of UIImagePickerController with images

Am using camera in my app by using UIImagePickerController.I want to change the default Retake and UsePhoto buttons with images.How do i need to proceed to implement this.

Upvotes: 0

Views: 1364

Answers (1)

Adeel Ur Rehman
Adeel Ur Rehman

Reputation: 566

You can create your custom view with the buttons you want to show. When you create UIImagePickerController just set the following:

picker = [[UIImagePickerController alloc] init];
picker.showsCameraControls = NO;

self.overlayView = [[[NSBundle mainBundle] loadNibNamed:@"OverlayView" owner:self options:nil] objectAtIndex:0];
self.overlayView.frame = picker.cameraOverlayView.frame;

picker.cameraOverlayView = self.overlayView; //Overlay View will be your custom view.
[self presentViewController:picker animated:YES completion:nil];

Upvotes: 1

Related Questions