Все, с кем я работаю в приложении на основе вкладок.Я открываю камеру на экране, чтобы сфотографировать.Но когда камера открыта, я не вижу кнопку «Сделать фото» внизу.Я предполагаю, что кнопка скрывается за панелью вкладок.Если я прав, то мне нужно убрать панель вкладок на экране камеры.Может кто-нибудь сказать мне, как я могу удалить панель вкладок на экране камеры?
Я использую это для отображения камеры:
[self presentModalViewController:imagePickerController animated:YES];
Мое приложение на основе вкладок и этот кодзаписывается в контроллере представления, который связан с элементом панели вкладок.
if (!imagePickerController) {
imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.delegate = self;
// If our device has a camera, we want to take a picture, otherwise, we just pick from
// photo library
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
{
[imagePickerController setSourceType:UIImagePickerControllerSourceTypeCamera];
}else
{
[imagePickerController setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Attention" message:@"Your device does not support taking photos from camera. Redirecting you to Photos Library instead." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
}
// image picker needs a delegate so we can respond to its messages
imagePickerController.delegate = self;
}
// Place image picker on the screen
[self presentModalViewController:imagePickerController animated:YES];