title: iOS: UIImagePickerController - using toolbar property?
body: <p>Given the following code, The buttons does not show up on the toolbar. Is there something wrong? </p>
  
  <pre><code>UIImagePickerController* cameraPickerController = [[UIImagePickerController alloc] init];
  cameraPickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
  cameraPickerController.delegate =self;
  cameraPickerController.showsCameraControls = NO;
  cameraPickerController.toolbarHidden = NO;
  
  UIBarButtonItem *cancelBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"Cancel" style:UIBarButtonItemStyleBordered target: self action: @selector(cancel)];
  UIBarButtonItem *flexibleBarSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
  flexibleBarSpace.width = 1000;
  UIBarButtonItem *cameraBarButtonItem = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemCamera target:cameraPickerController action:@selector(takePicture)];
  UIBarButtonItem *faceBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"Show facemask" style:UIBarButtonItemStyleBordered target: self action: @selector(showFacemask)];
  cameraPickerController.toolbar.items = [NSArray arrayWithObjects:cancelBarButtonItem,flexibleBarSpace,cameraBarButtonItem,flexibleBarSpace,faceBarButtonItem,nil];
  
  [self presentModalViewController:cameraPickerController animated:YES];
  </code></pre>
  
  <p>Those cancelBarButtons and other should in theory show up on the toolbar. However, it does not in this case. Please advise.</p>