2012-04-20 2 views
1

아무도 iPhone의 사진 앱처럼 가로 모드에서 UIImagePickerControllerSourceTypePhotoLibrary를 표시하는 방법을 알고 있습니까?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]; 
    } 
} 
+3

[이 질문에 대한 답변] [1]을 확인하십시오. 이 [1] : http://stackoverflow.com/questions/2083672/uiimagepickercontroller-in-landscape –

+0

안녕 마이클, 그것은 나를 위해 작동하지 않습니다 를, 'UIDevice'에 대한 눈에 띄는 @interface 선언하지 않는 selector 'setOrientation :' [[UIDevice currentDevice] setOrientation : UIInterfaceOrientationLandscapeRight]를 설정할 때; – Desmond

답변

2

가로형으로 표시 할 수 없습니다. 기본 photo.app can

관련 문제