コード例 #1
0
        public TimingSplitViewController() : base()
        {
            // create our master and detail views
            _detailViewController = new TimingDetailViewController();
            var detailNavigationController = new UINavigationController(_detailViewController);

            _masterViewController = new TimingMasterViewController(_detailViewController);
            var masterNavigationController = new UINavigationController(_masterViewController);

            ShouldHideViewController = (svc, vc, orientation) => {
                return(false);
            };

            _detailViewController.ItemAdded += (item) => _masterViewController.AddItem(item);


            //			Li stFiles ("https://www.dropbox.com/sh/o0h70ccg9t3ssql/itnWVUH6K6");

            // ALWAYS SET THIS LAST (since iOS5.1)
            // https://bugzilla.xamarin.com/show_bug.cgi?id=3803
            // http://spouliot.wordpress.com/2012/03/26/events-vs-objective-c-delegates/
            // create an array of controllers from them and then assign it to the
            // controllers property
            ViewControllers = new UIViewController[] { masterNavigationController, detailNavigationController };
        }
コード例 #2
0
        public TimingSplitViewController()
            : base()
        {
            // create our master and detail views
            _detailViewController = new TimingDetailViewController ();
            var detailNavigationController = new UINavigationController (_detailViewController);
            _masterViewController = new TimingMasterViewController (_detailViewController);
            var masterNavigationController = new UINavigationController (_masterViewController);

            ShouldHideViewController = (svc, vc, orientation) => {
                return false;
            };

            _detailViewController.ItemAdded += (item) => _masterViewController.AddItem(item);

            //			Li stFiles ("https://www.dropbox.com/sh/o0h70ccg9t3ssql/itnWVUH6K6");

            // ALWAYS SET THIS LAST (since iOS5.1)
            // https://bugzilla.xamarin.com/show_bug.cgi?id=3803
            // http://spouliot.wordpress.com/2012/03/26/events-vs-objective-c-delegates/
            // create an array of controllers from them and then assign it to the
            // controllers property
            ViewControllers = new UIViewController[] { masterNavigationController, detailNavigationController };
        }