[英]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.