Created
February 5, 2012 19:30
-
-
Save anonymous/1747559 to your computer and use it in GitHub Desktop.
Stack Overflow - Question 9150287 - PageViewController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class PageViewController : UIViewController | |
{ | |
private UIPageViewController pageViewController; | |
public override void ViewDidLoad() | |
{ | |
base.ViewDidLoad(); | |
this.pageViewController = new UIPageViewController(UIPageViewControllerTransitionStyle.PageCurl, UIPageViewControllerNavigationOrientation.Horizontal, UIPageViewControllerSpineLocation.Min); | |
this.pageViewController.SetViewControllers(new UIViewController[] { new DemoPage() }, UIPageViewControllerNavigationDirection.Forward, false, s => {}); | |
this.View.AddSubview(this.pageViewController.View); | |
} | |
public ReturnToFrontPage() | |
{ | |
this.pageViewController.SetViewControllers(new UIViewController[] { new FrontPage() }, UIPageViewControllerNavigationDirection.Forward, false, s => {}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment