在我的 iOS 应用程序中,我提供了标准控制器 MFMessageComposeViewController 和 UIImagePickerController。
但他们都呈现出奇怪的导航栏。
我该如何解决这个问题?
用于呈现控制器的UPD代码
UIImagePicker控制器:
UIImagePickerController *cameraUI = [[UIImagePickerController alloc] init];
cameraUI.sourceType = sourceType;
cameraUI.allowsEditing = YES;
cameraUI.delegate = self;
[self presentViewController:cameraUI animated:YES completion:nil];
MFMessageComposeViewController:
MFMessageComposeViewController *messageViewController = [[MFMessageComposeViewController alloc] init];
if([MFMessageComposeViewController canSendText]) {
messageViewController.view.backgroundColor = [UIColor whiteColor];
messageViewController.messageComposeDelegate = self;
recipient= [NSStringMask maskString:recipient withPattern:@"\\+(\\d{1}) \\((\\d{3})\\) (\\d{3})-(\\d{2})-(\\d{2})"];
messageViewController.recipients = @[recipient];
messageViewController.body = body;
[self presentViewController:messageViewController animated:YES completion:nil];
}