2013-07-29 4 views
0

내 카메라 컨트롤이 잘못 정렬되어 화면 상단에 잘린 부분이 표시됩니다. 다음은 카메라를 사용하기 위해 구현 한 코드입니다.이 문제를 해결할 수있는 방법이 있습니까?iPhone 카메라 컨트롤이 잘못 정렬되었습니다.

- (void)takePhoto { 
    UIImagePickerController *picker = [[UIImagePickerController alloc] init]; 
    if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeCamera]) { 
     picker.sourceType = UIImagePickerControllerSourceTypeCamera; 
     picker.cameraCaptureMode = UIImagePickerControllerCameraCaptureModePhoto; 
    } else { 
     picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; 
    } 
    [MAINVIEWCONTROLLER presentViewController:picker animated:YES completion:nil]; 

} 

enter image description here

답변

1

체크 wantsFullScreenLayout 따라 설정할. 전체 화면을 원하는 경우에

은 또한 setStatusBarHidden:withAnimation:

+0

최고를 사용하여 상태 표시 줄을 숨길 필요합니다! 그게 고마워! 수동으로 카메라 컨트롤을 이동해야한다고 생각했지만 사진을 찍을 때 상태 표시 줄을 숨기는 것이 좋습니다. –