Reputation: 239
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
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