开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜