UIImagePickerController无法选择图像问题?

时间:2018-06-15 09:22:44

标签: ios uiimagepickercontroller

这是我提供UIImagePickerController的代码:

        UIImagePickerController *imagepicker = [[UIImagePickerController alloc] init];
        imagepicker.delegate = self;
        imagepicker.view.backgroundColor = [UIColor orangeColor];
        UIImagePickerControllerSourceType sourcheType = UIImagePickerControllerSourceTypePhotoLibrary;
        imagepicker.sourceType = sourcheType;
        imagepicker.allowsEditing = YES;
        [self presentViewController:imagepicker animated:YES completion:nil];

enter image description here 这是发生错误的图像 enter image description here 这是正常的图片 这种情况发生在一台iPad(iOS 11.1.2)上,但在另一台iPad上运行正常(iOS 8.4.1)。我尝试了这些改变,但似乎都没有。

0 个答案:

没有答案
相关问题