Перейти к файлу
Clancey f492faad77 cleaned up the repo 2013-01-14 10:07:47 -08:00
FlyOutNavigation Added a way to ignore swipes. Changed the sample name. 2013-01-08 10:57:16 -08:00
FlyOutNavigationSample Restructured the sample 2013-01-14 09:52:17 -08:00
.gitignore Initial Commit 2011-11-26 17:15:16 -09:00
FlyOutNavigation.sln Added a way to ignore swipes. Changed the sample name. 2013-01-08 10:57:16 -08:00
License.md Restructured the sample 2013-01-14 09:52:17 -08:00
README.md cleaned up the repo 2013-01-14 10:07:47 -08:00

README.md

The FlyOutNavigationController presents a simple navigation view that appears to slide out from underneath a main view, allowing you to navigate among a list of view controllers. The same view also functions as a UISplitViewController on the iPad.

using FlyOutNavigation;
using MonoTouch.Dialog;
...
public override void ViewDidLoad ()
{
	base.ViewDidLoad ();
	var navigation = new FlyOutNavigationController {
		// Create the navigation menu
		NavigationRoot = new RootElement ("Navigation") {
			new Section ("Pages") {
				new StringElement ("Animals"),
				new StringElement ("Vegetables"),
				new StringElement ("Minerals"),
			}
		},
		// Supply view controllers corresponding to menu items:
		ViewControllers = new [] {
			new UIViewController { View = new UILabel { Text = "Animals (drag right)" } },
			new UIViewController { View = new UILabel { Text = "Vegetables (drag right)" } },
			new UIViewController { View = new UILabel { Text = "Minerals (drag right)" } },
		},
	};
	// Show the navigation view
	navigation.ToggleMenu ();
	View.AddSubview (navigation.View);
}