Пример #1
0
 // This method is invoked when the application has loaded its UI and its ready to run
 public override bool FinishedLaunching (UIApplication app, NSDictionary options)
 {
     _tabController = new UITabBarController ();
     
     _sampleVC = new SampleViewController ();
     _sampleVC.TabBarItem.Title = "tab 1";
     
     _secondVC = new SecondViewController ();
     _secondVC.TabBarItem.Title = "tab 2";
     
     _tabController.ViewControllers = new UIViewController[] { _sampleVC, _secondVC };
     
     window.AddSubview (_tabController.View);
     
     window.MakeKeyAndVisible ();
     
     return true;
 }
Пример #2
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _tabController = new UITabBarController();

            _sampleVC = new SampleViewController();
            _sampleVC.TabBarItem.Title = "tab 1";

            _secondVC = new SecondViewController();
            _secondVC.TabBarItem.Title = "tab 2";

            _tabController.ViewControllers = new UIViewController[] { _sampleVC, _secondVC };

            window.AddSubview(_tabController.View);

            window.MakeKeyAndVisible();

            return(true);
        }
Пример #3
0
 public MyAccelerometerDelegate(SampleViewController controller)
 {
     _controller = controller;
 }
 public MyAccelerometerDelegate (SampleViewController controller)
 {
     _controller = controller;
 }