public override bool FinishedLaunching (UIApplication app, NSDictionary options)
        {
            base.FinishedLaunching (app, options);
            
            _splitController = new UISplitViewController ();         
            _notesController = new NotesTableControllerIPad ();
            _noteDetailController = new NoteDetailControllerIPad ();
            
            _splitDelegate = new NoteDetailControllerIPad.SplitDelegate (_noteDetailController);
            _splitController.Delegate = _splitDelegate;

            _splitController.ViewControllers = new UIViewController[] { _notesController, _noteDetailController };
            
            window.AddSubview (_splitController.View);
            
            window.MakeKeyAndVisible ();
            
            return true;
        }
Exemple #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            base.FinishedLaunching(app, options);

            _splitController      = new UISplitViewController();
            _notesController      = new NotesTableControllerIPad();
            _noteDetailController = new NoteDetailControllerIPad();

            _splitDelegate            = new NoteDetailControllerIPad.SplitDelegate(_noteDetailController);
            _splitController.Delegate = _splitDelegate;

            _splitController.ViewControllers = new UIViewController[] { _notesController, _noteDetailController };

            window.AddSubview(_splitController.View);

            window.MakeKeyAndVisible();

            return(true);
        }