0

I have a problem showing the album a toolbar with the following buttons, previous and the new one appears in the bottom view. How can you hide this toolbar?

Thanks in advance.

Album photo image

 UIImagePickerController *controller = [[UIImagePickerController alloc] init];
            controller.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            controller.allowsEditing = YES;
            controller.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType: UIImagePickerControllerSourceTypePhotoLibrary];
            controller.delegate = self;
            [self.navigationController presentViewController: controller animated: YES completion: nil];
kuakeman
  • 1
  • 2
  • Welcome to SO. See https://stackoverflow.com/help/mcve for guidance on how to ask a question. – Nick Jul 18 '18 at 09:00

3 Answers3

2

If you want to hide the toolbar you can use the following code . Here the toolBarName is the name of your toolbar.

toolBarName.hidden=YES;
CELIA JOSE
  • 146
  • 4
0

Include this in the viewWillAppear function:

self.navigationController?.isToolbarHidden = true

However, this is a Swift solution.

Simba
  • 177
  • 13
0

Use this code.Hope it helps..

UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init] ;
    if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary])
{

imagePickerController.delegate = self;

imagePickerController.allowsEditing = FALSE;

[imagePickerController setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];

[self presentViewController:imagePickerController animated:YES completion:nil];

 }
Almazini
  • 1,825
  • 4
  • 25
  • 48