-
Notifications
You must be signed in to change notification settings - Fork 2
/
AppDelegate.cs
30 lines (24 loc) · 914 Bytes
/
AppDelegate.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Drawing;
namespace SplitViewAndMTDialog1
{
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
UIWindow App_Window;
UISplitViewController SV_Controller;
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
// Create the main window and add the navigation controller as a subview
App_Window = new UIWindow (UIScreen.MainScreen.Bounds);
SV_Controller = new MySplitViewController();
SV_Controller.Delegate = new UISplitViewControllerDelegate();
SV_Controller.ViewControllers = new UIViewController[] { new MyNavigationController(), new DetailViewController("Hello World") };
App_Window.RootViewController = SV_Controller;
App_Window.MakeKeyAndVisible();
return true;
}
}
}