gpt4 book ai didi

iphone - UIImagePickerController异常: "Source type must be UIImagePickerControllerSourceTypeCamera"

转载 作者:行者123 更新时间:2023-12-03 18:21:53 29 4
gpt4 key购买 nike

这有什么问题吗?我真的不明白 UIImagePickerController 的一些重要部分......

来源如下:

     UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imagePickerController.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto;
imagePickerController.delegate = self;
[self presentModalViewController:imagePickerController animated:YES];
[imagePickerController release];

我无法打开照片库吗?任何帮助表示赞赏!

最佳答案

如果您使用的是照片库,是否需要设置cameraCaptureMode

关于iphone - UIImagePickerController异常: "Source type must be UIImagePickerControllerSourceTypeCamera",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3691061/

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