Open stan-w-gifford opened 1 year ago
Hi, I am using Xamarin.IOS on VS 2022; I am deploying to an Ipad mini. My code is;
` CameraViewController cameraViewController = new CameraViewController(false, false, (image, asset) => { // Do something with your image here. // If cropping is enabled this image will be the cropped version if (image!=null) { Globals.saveImage(image); } DismissViewController(true, null); }); Globals.cameraActive = true; Globals.cameraViewController = cameraViewController; //this.NavigationController.PushViewController(cameraViewController, true); PresentViewController(cameraViewController, true, null);`
The above is in the context of a UIbutton.
I have two issues;
- If I take a picture, then on the preview I hit X (don't save), the callback is not called - and the application hangs.
- The second issue is more of a 'how the hell to I do this'. I want to continually take pictures until the 'x' (dismiss is presses). I note that if the x is pushed, the callback does work and image is null. If image is not null I call saveImage and then wish to continue so I would not call DismissViewController - If I do this, the sreen turns blank and the application hangs. It is almost as if I need to save the image and somehow do a cameraViewController.RESET type call.
ANy advice would be extremely helpfull
Stan
Regarding the hang when hitting the disgard image X. I find if I just drag the BLACK camera View a tiny bit, it refreshes and shows the camera image again
Note (again). I compiled and deployed your sample application. Same behaviour when the disgard X is pushed.
Hi, I am using Xamarin.IOS on VS 2022; I am deploying to an Ipad mini. My code is;
The above is in the context of a UIbutton.
I have two issues;
ANy advice would be extremely helpfull
Stan