是否可以更改UIImagePickerController的UIButtons的默认操作。即(取消,使用,重拍等)?
例如,在我拍照并点击“使用”后,我被带到相册视图控制器。我可以将其设置为只重新加载UIImagePickerController吗?
答案 0 :(得分:1)
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;
只需不断向newOverlay添加按钮并设置操作!