Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
- imagePickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
- imagePickerController.sourceType = sourceType;
- imagePickerController.delegate = self;
- if (sourceType == UIImagePickerControllerSourceTypeCamera) {
- imagePickerController.showsCameraControls = YES;
- }
- self.imagePickerController = imagePickerController;
- [self presentViewController:self.imagePickerController animated:YES completion:nil];
- imagePickerController.modalPresentationStyle = UIModalPresentationFullScreen;
- imagePickerController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
- imagePicker.setNavigationBarHidden(false, animated: false)
- imagePicker.dismiss(animated: true)
- imagePicker.setNavigationBarHidden(false, animated: false)
Add Comment
Please, Sign In to add comment