2

UIImagePickerController の UIButtons のデフォルト アクションを変更することは可能ですか。すなわち(キャンセル、使用、再取得など)?

たとえば、写真を撮って [使用] をタップすると、フォト アルバムのビュー コントローラーに移動します。代わりに UIImagePickerController をリロードするように設定できますか?

4

1 に答える 1

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 にボタンを追加し続けて、アクションを設定するだけです!

于 2013-08-26T23:04:33.570 に答える