Guest User

Untitled

a guest
Jun 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
  2. imagePickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
  3. imagePickerController.sourceType = sourceType;
  4. imagePickerController.delegate = self;
  5.  
  6. if (sourceType == UIImagePickerControllerSourceTypeCamera) {
  7. imagePickerController.showsCameraControls = YES;
  8. }
  9.  
  10. self.imagePickerController = imagePickerController;
  11. [self presentViewController:self.imagePickerController animated:YES completion:nil];
  12.  
  13. imagePickerController.modalPresentationStyle = UIModalPresentationFullScreen;
  14. imagePickerController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
  15.  
  16. imagePicker.setNavigationBarHidden(false, animated: false)
  17.  
  18. imagePicker.dismiss(animated: true)
  19. imagePicker.setNavigationBarHidden(false, animated: false)
Add Comment
Please, Sign In to add comment