Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take a picture programmatically #111

Closed
iroller opened this issue Feb 26, 2016 · 1 comment
Closed

Take a picture programmatically #111

iroller opened this issue Feb 26, 2016 · 1 comment

Comments

@iroller
Copy link

iroller commented Feb 26, 2016

Hi. I have a use case where I embed the whole ImagePickerController() into a small subview on the screen. I'm trying to remove all the buttons from the subview and call take-picture from parent controller.

The following gives me almost what I need - it triggers cancelButtonDidPress() in parent viewController since no picture was triggered:

imagePickerController.bottomContainer.doneButton.sendActionsForControlEvents(UIControlEvents.TouchUpInside)

Is there any way to make it take a picture programmatically and trigger doneButtonDidPress([UIImage])?

Thanks for the project btw, it's great.

@aashishdhawan
Copy link
Contributor

Thanks @iroller.

Hi. I have a use case where I embed the whole ImagePickerController() into a small subview on the screen. I'm trying to remove all the buttons from the subview and call take-picture from parent controller.

I do not think ImagePicker is the right choice for what you are trying to do as main purpose of ImagePicker is different.

@zenangst wanna close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants