-
Notifications
You must be signed in to change notification settings - Fork 48
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
It seems no way to preset flash mode for imagepicker. #2
Comments
Actually there is one, but in All functionality is in the view to make it more flexible, for instance to embed it inside your own controllers. In contrast |
It means I cannot preset flash mode in NBUImagePicker. It has to be set after cameraview set its current device. But I cannot hook up my code to that point. Sent from my iPhone
|
The problem is that it is not efficient to reproduce all
There also this somewhat outdated customization guide that I'll try to update. |
At the time finishConfiguringControllers: is called, cameraView is not created. So I cannot set flashmode. |
One way to do it is to force Camera Controller to load its view: if (self.cameraController.view) // This will force view's load
{
self.cameraController.cameraView... // Camera view is now loaded and configurable
} A cleaner way would be to subclass Camera Controller and override |
self.currentAVCaptureDevice is set in viewWillApear. Even I force cameraView loaded, currentDevice is nil. I still cannot set flashMode... |
You're right. One more reason to subclass it to have full control of the Camera View.
Again there are two many variables and properties to forward (and more importantly to maintain) to the controllers, so only a few are present. |
Didn't find how to set flash mode in ImagePicker for CameraViewController. Why not just take a parameter?
The text was updated successfully, but these errors were encountered: