将Xib文件添加为CameraOverlay以创建自定义相机UI(XAMARIN.iOS)

时间:2016-08-23 15:18:42

标签: c# ios xamarin xamarin.ios camera-overlay

我正在尝试创建一个相机自定义UI(有点像Instagram相机视图)

有人可以帮我添加.xib(我的cameraOverlayView的布局)作为cameraOverlayView。

里面 - > viewDidLoad中()

        base.ViewDidLoad();
        var imagePickerControl = new UIImagePickerController();
        imagePickerControl.SourceType =  UIImagePickerControllerSourceType.Camera;
        imagePickerControl.ShowsCameraControls = true;
        //Code lines needed to add the xib "CameraOverlayView.xib" as uiview to pass next line  
        imagePickerControl.CameraOverlayView = ;

        var imagePickerDelegate = new CameraImagePicker(this);
        imagePickerControl.Delegate = imagePickerDelegate;
        NavigationController.PresentModalViewController(imagePickerControl, true);

我在提到 https://developer.xamarin.com/recipes/ios/general/templates/using_the_ios_view_xib_template/

但我无法将xib添加为我的CameraOverlay

如果需要,请询问相关代码.. 提前谢谢

0 个答案:

没有答案