コード例 #1
0
ファイル: AppDelegate.cs プロジェクト: rampyodm/XamarinDNR
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
      CurrentPlatform.Init();


			window = new UIWindow (UIScreen.MainScreen.Bounds);

			if (Application.IsiOS7) {
				window.TintColor = UIColor.Red;
			}

			podcastsController = new PodcastsController (new UICollectionViewFlowLayout {
				ItemSize = PodcastCell.PortraitSize,
				MinimumInteritemSpacing = 5.0f,
				MinimumLineSpacing = 5.0f
			});

			navController = new UINavigationController (podcastsController);
			window.RootViewController = navController;
			window.MakeKeyAndVisible ();

			return true;
		}
コード例 #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            CurrentPlatform.Init();


            window = new UIWindow(UIScreen.MainScreen.Bounds);

            if (Application.IsiOS7)
            {
                window.TintColor = UIColor.Red;
            }

            podcastsController = new PodcastsController(new UICollectionViewFlowLayout {
                ItemSize = PodcastCell.PortraitSize,
                MinimumInteritemSpacing = 5.0f,
                MinimumLineSpacing      = 5.0f
            });

            navController             = new UINavigationController(podcastsController);
            window.RootViewController = navController;
            window.MakeKeyAndVisible();

            return(true);
        }