Skip to content

Instantly share code, notes, and snippets.

Created February 5, 2012 19:30
Show Gist options
  • Save anonymous/1747559 to your computer and use it in GitHub Desktop.
Save anonymous/1747559 to your computer and use it in GitHub Desktop.
Stack Overflow - Question 9150287 - PageViewController.cs
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