gpt4 book ai didi

iphone - 如何在横向模式下显示 UIImagePickerControllerSourceTypePhotoLibrary

转载 作者:行者123 更新时间:2023-11-29 11:14:03 24 4
gpt4 key购买 nike

有人知道如何在横向模式下显示 UIImagePickerControllerSourceTypePhotoLibrary 就像 iPhone 中的照片应用程序一样吗?​​

- (void)getPhotoFromSource:(UIImagePickerControllerSourceType)sourceType;
{
if ([UIImagePickerController isSourceTypeAvailable:sourceType])
{ photoPicker.sourceType = sourceType;//UIImagePickerControllerSourceTypePhotoLibrary
[self presentViewController:photoPicker animated:YES completion:nil];
//[self presentModalViewController:photoPicker animated:YES];
}
else
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error accessing media" message:@"Device doesn't support media source" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
[alert show];
}
}

最佳答案

无法以横向形式显示。尽管 native photo.app 可以

关于iphone - 如何在横向模式下显示 UIImagePickerControllerSourceTypePhotoLibrary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10240169/

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