0

I am stuck in creating a CameraOverlayView on the UIImagePicker my Xamarin.iOS application here is my code to launch the cameraView

{
var imagePickerControl = new UIImagePickerController();
imagePickerControl.SourceType = UIImagePickerControllerSourceType.Camera;
imagePickerControl.ShowsCameraControls = false;
//imagePickerControl.CameraOverlayView = new CameraOverlayView();
var imagePickerDelegate = new CameraImagePicker(this);
imagePickerControl.Delegate = imagePickerDelegate;
NavigationController.PresentModalViewController(imagePickerControl, true);
}

the above code helped me creating a imagepicker with no controls... can somebody help me creating a CameraOverlayview :UIView I m trying to create a custom UI and basic controls (with 2 imagebuttons and UI like its in instagram Camera screen)

samridhgupta
  • 1,695
  • 1
  • 18
  • 34
  • Why have you commented out `imagePickerControl.CameraOverlayView `? First initialize your custom view, then assign it to CameraOverlayView before presenting imagepicker – NightFury Aug 22 '16 at 08:04
  • Actually I m unaware how to implement the CameraOverlayView() class which i have not created yet due to lack of working examples. Can You help me with the structure of CameraOverlayView:UIView class – samridhgupta Aug 22 '16 at 08:10
  • Look at the sample code [here](http://stackoverflow.com/questions/20590346/using-cameraoverlayview-with-uiimagepickercontroller) in the Question – NightFury Aug 22 '16 at 08:13
  • I have gone through almost every ios example on forums etc , but cant find a perfect way with xamarin code to get cameraoverlayview on my cameraview.... thanks in advance – samridhgupta Aug 22 '16 at 08:20
  • [Adding CameraOverlayView on XaamiOS](https://stackoverflow.com/a/56183433/8732045) – Assegd May 20 '19 at 11:51

0 Answers0