gpt4 book ai didi

iphone - 如何更改 UIImagePickerController 中的取消按钮标题?

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:08:30 27 4
gpt4 key购买 nike

目前我正在开发一个多语言应用程序,我想更改 CancelUseRetake 按钮标题UIImagePickerController。我该怎么做?

最佳答案

我的问题已通过使用自定义覆盖类解决。

self.picker = [[UIImagePickerController alloc] init];
self.picker.sourceType = UIImagePickerControllerSourceTypeCamera;
self.picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
self.picker.cameraDevice = UIImagePickerControllerCameraDeviceRear;
self.picker.showsCameraControls = NO;
self.picker.navigationBarHidden = YES;
self.picker.toolbarHidden = YES;
self.picker.wantsFullScreenLayout = YES;

// Insert the overlay
self.overlay = [[OverlayViewController alloc] initWithNibName:@"Overlay" bundle:nil];
self.overlay.pickerReference = self.picker;
self.picker.cameraOverlayView = self.overlay.view;
self.picker.delegate = self.overlay;

[self presentModalViewController:self.picker animated:NO];

关于iphone - 如何更改 UIImagePickerController 中的取消按钮标题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16436495/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com