How to implement custom “Use” and “Repeat” buttons in UIImagePicker?

My camera is off, I mean

  pickerCam.showsCameraControls = NO; 

and I have a custom capture button that performs the capture function,

  [pickerCam takePicture]; 

when you click this button, the delegate will be called,

  - (void) imagePickerController: (UIImagePickerController *) pi didFinishPickingMediaWithInfo: (NSDictionary *) info 

Instead, I need to implement the “Use” and “Restore” custom options on how to do this. thanks in advance

+4
source share
1 answer
  • In the imagePickerController: didFinishPickingMediaWithInfo: method saves the image captured in the global varialbe
  • Add a view to the overlay with the "Use and Return" button,
  • Remove the collector in the target ad.
  • In the retransmission mode, delete the view with the "Use" and "Repeat" buttons.
+4
source

Source: https://habr.com/ru/post/1345199/


All Articles