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 に答える