1

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

- (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];
    }
}
4

1 回答 1

2

无法以横向形式显示。虽然原生 photo.app 可以

于 2012-06-01T00:28:25.090 回答