public void Flip()
        {
            // lazy load the non-default view
            if (locationView == null)
            {
                locationView            = new MapLocationViewController(this);      //SponsorsViewController(this);
                locationView.View.Frame = new RectangleF(0, 0, this.View.Frame.Width, this.View.Frame.Height);
            }
            Console.WriteLine("Flip");

            UIView.BeginAnimations("Flipper");
            UIView.SetAnimationDuration(1.25);
            UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut);
            if (mapView.View.Superview == null)
            {
                Console.WriteLine("to sponsor");
                UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromRight, this.View, true);
                locationView.ViewWillAppear(true);
                mapView.ViewWillDisappear(true);

                Console.WriteLine("to map");
                locationView.View.RemoveFromSuperview();
                this.View.AddSubview(mapView.View);
            }
            else
            {
                Console.WriteLine("to sponsor");
                UIView.SetAnimationTransition(UIViewAnimationTransition.FlipFromLeft, this.View, true);
                mapView.ViewWillAppear(true);
                locationView.ViewWillDisappear(true);


                mapView.View.RemoveFromSuperview();
                this.View.AddSubview(locationView.View);

                locationView.ViewDidDisappear(true);
                mapView.ViewDidAppear(true);
            }
            UIView.CommitAnimations();
        }
        public void Flip()
        {
            // lazy load the non-default view
            if (locationView == null)
            {
                locationView = new MapLocationViewController(this); //SponsorsViewController(this);
                locationView.View.Frame = new RectangleF(0,0,this.View.Frame.Width, this.View.Frame.Height);
            }
            Console.WriteLine("Flip");

            UIView.BeginAnimations("Flipper");
            UIView.SetAnimationDuration(1.25);
            UIView.SetAnimationCurve(UIViewAnimationCurve.EaseInOut);
            if (mapView.View.Superview == null)
            {
                Console.WriteLine("to sponsor");
                UIView.SetAnimationTransition (UIViewAnimationTransition.FlipFromRight, this.View, true);
                locationView.ViewWillAppear(true);
                mapView.ViewWillDisappear(true);

                Console.WriteLine("to map");
                locationView.View.RemoveFromSuperview();
                this.View.AddSubview(mapView.View);
            }
            else
            {
                Console.WriteLine("to sponsor");
                UIView.SetAnimationTransition (UIViewAnimationTransition.FlipFromLeft, this.View, true);
                mapView.ViewWillAppear(true);
                locationView.ViewWillDisappear(true);

                mapView.View.RemoveFromSuperview();
                this.View.AddSubview(locationView.View);

                locationView.ViewDidDisappear(true);
                mapView.ViewDidAppear(true);
            }
            UIView.CommitAnimations();
        }
Esempio n. 3
0
 public TableViewDelegate(MapLocationViewController controller, List <MapLocation> locations)
 {
     _dvc       = controller;
     _locations = locations;
 }
Esempio n. 4
0
 public TableViewDataSource(MapLocationViewController controller, List <MapLocation> dates)
 {
     _dvc       = controller;
     _locations = dates;
 }
 public TableViewDelegate(MapLocationViewController controller, List<MapLocation> locations)
 {
     _dvc = controller;
     _locations = locations;
 }
 public TableViewDataSource(MapLocationViewController controller, List<MapLocation> dates)
 {
     _dvc = controller;
     _locations = dates;
 }