我试图在UIModalPresentationFormSheet模式下从iPad上呈现的控制器呈现UIImagePickerController .

但我总是得到以下错误

***由于未捕获的异常'UIApplicationInvalidInterfaceOrientation'终止应用程序,原因:'支持的方向与应用程序没有共同的方向,并且[PUUIAlbumListViewController shouldAutorotate]返回YES'

- (void)showPickerWithSourceType:(UIImagePickerControllerSourceType)sourceType {
    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.delegate = self;
    picker.allowsEditing = YES;
    picker.sourceType = sourceType;

    [self presentViewController:picker animated:YES completion:nil];
}

如何以横向模式呈现它?