Exemple #1
0
        void SetupScrollView()
        {
            var OverviewController = Storyboard.InstantiateViewController("OverviewController") as OverviewController;
            var CameraController   = Storyboard.InstantiateViewController("CameraController") as CameraController;

            MainScrollView.ContentSize = new CoreGraphics.CGSize(View.Frame.Width * 2, View.Frame.Height);

            OverviewController.View.Frame = new CoreGraphics.CGRect(CameraController.View.Frame.Width, 0, View.Frame.Width, View.Frame.Height);
            CameraController.View.Frame   = View.Frame;

            MainScrollView.Frame            = View.Frame;
            MainScrollView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth;
            MainScrollView.AddSubview(OverviewController.View);
            MainScrollView.AddSubview(CameraController.View);
            View.BringSubviewToFront(MainScrollView);
        }