简体   繁体   English

是否可以更改UIImagePickerController ..即(取消,使用,重拍等)的UIButton的动作?

[英]is it possible to change the actions of the UIButtons for the UIImagePickerController.. i.e.(cancel, use, retake..etc…)?

is it possible to change the default actions of the UIButtons for the UIImagePickerController. 是否可以更改UIImagePickerController的UIButton的默认操作。 ie(cancel, use, retake, etc.)? 即(取消,使用,重取等)?

For example, after I take a picture and tap 'use', I am taken to the photo albums view controller. 例如,在我拍照并点击“使用”后,我被带到相册视图控制器。 Can I set it up to instead just reload the UIImagePickerController? 我可以将其设置为仅重新加载UIImagePickerController吗?

UIView *newOverlay = [[UIView alloc] init];
UIButton *newButton = [UIButton buttonWithType:UIButtonTypeCustom];
newButton.frame = CGRectMake(20,40,70,40);
[myButton addTarget:self 
         action:@selector(yourAction:) 
forControlEvents:UIControlEventTouchUpInside];
[newOverlay addSubview:newButton];

picker.cameraOverlayView = newOverlay;

Just keep adding buttons to your newOverlay and set the actions! 只需继续向newOverlay添加按钮并设置操作即可!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Swift:如何更改UIImagePickerController的“使用照片”,“取消”,“拍摄”,“重拍”按钮的默认行为 - Swift: how to change default behaviour of buttons “Use Photo”, “Cancel”, “Shoot”, “Retake” of UIImagePickerController 使用UIImagePickerController自定义“使用”,“取消”,“重拍”和“倒车”按钮事件 - Custom “Use”, “Cancel”,“Retake” and “Reverse Camera” button event using UIImagePickerController 禁用重拍,播放和使用视频屏幕UIImagePickerController - Disable the retake, play and use video screen UIImagePickerController 带有覆盖的iOS 7 UIImagePickerController - 重新拍摄并使用不可用的照片 - iOS 7 UIImagePickerController with Overlay - retake and use photo not usable 是否可以在Apple设备(例如Iphone,Ipad)上跟踪Cookie等 - Is it possible to track cookies etc on an Apple Device i.e. Iphone, Ipad UIImagePickerController 使用照片/重拍按钮不起作用 - UIImagePickerController Use Photo / Retake buttons don't work 如何在UIImagePickerController中访问“Retake”选项? - How to access “Retake” option in UIImagePickerController? 更改UIImagePickerController中的取消按钮文本 - Change cancel button text in UIImagePickerController 替换拍摄并重新拍摄按钮UIImagePickerController - Replace shoot and retake button UIImagePickerController UIImagePickerController在UpperCase Letters“USE_PHOTO”,“RETAKE”和Gallery Images“CAMERA_ROLL”中显示文本? - UIImagePickerController shows text in UpperCase Letters “USE_PHOTO” , “RETAKE” and Gallery Images “CAMERA_ROLL”?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM