开发者

How to implement custom 'Use' and 'Retake' button in UIImagePicker?

开发者 https://www.devze.com 2023-02-19 10:49 出处:网络
I have a switched the cameracontrolls off, i mean pickerCam.showsCameraControls=NO; and i have custom capture button which does the capture functionality,

I have a switched the cameracontrolls off, i mean

pickerCam.showsCameraControls=NO;

and i have custom capture button which does the capture functionality,

[pickerCam takePicture];

on click of this button the delegate will be called,

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

In开发者_JAVA百科stead i need to implement custom 'Use' and 'Retake' option , how do i do that. Thanks in advance


  1. In imagePickerController:didFinishPickingMediaWithInfo: Method save the image captured in a global varialbe
  2. Add a view to overlay having Use and Retake Button,
  3. In the Use target dismiss the picker.
  4. In retake target remove the view having Use and Retake buttons.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号