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
- In imagePickerController:didFinishPickingMediaWithInfo: Method save the image captured in a global varialbe
- Add a view to overlay having Use and Retake Button,
- In the Use target dismiss the picker.
- In retake target remove the view having Use and Retake buttons.
精彩评论