• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# NSDictionary类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中NSDictionary的典型用法代码示例。如果您正苦于以下问题:C# NSDictionary类的具体用法?C# NSDictionary怎么用?C# NSDictionary使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



NSDictionary类属于命名空间,在下文中一共展示了NSDictionary类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: FinishedLaunching

		public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
		{
			ServiceLocator.Instance.Add<IDatabase, Database>();
			Globe.SharedInstance.Database.InitializeDatabase();

			int userid = (int)NSUserDefaults.StandardUserDefaults.IntForKey("iduser");
			string username = NSUserDefaults.StandardUserDefaults.StringForKey("username");
			string password = NSUserDefaults.StandardUserDefaults.StringForKey("password");


			if (!String.IsNullOrEmpty(username) && !string.IsNullOrEmpty(password) && userid != 0)
			{
				Globe.SharedInstance.User.username = username;
				Globe.SharedInstance.User.password = password;
				Globe.SharedInstance.User.idUser = userid;

				createTabBarController();
				Window.RootViewController = TabBarController;
				Window.MakeKeyAndVisible();
			}

			SDImageCache.SharedImageCache.ClearMemory();
			SDImageCache.SharedImageCache.ClearDisk();

			StartTickNotification();



			if (launchOptions != null && launchOptions.ObjectForKey(UIApplication.LaunchOptionsRemoteNotificationKey) != null && TabBarController != null)
			{
				TabBarController.SelectedIndex = 1;
			}

			return true;
		}
开发者ID:natevarghese,项目名称:XamarinTen,代码行数:35,代码来源:AppDelegate.cs


示例2: FinishedLaunching

		public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
		{
			Current = this;

			// SQL
//			var sqliteFilename = "TaskDB.db3";
//			string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder
//			string libraryPath = Path.Combine (documentsPath, "..", "Library"); // Library folder
//			var path = Path.Combine(libraryPath, sqliteFilename);
//			var conn = new Connection(path);
//			TaskMgr = new TodoItemManager(conn);

			// AZURE
			TaskMgr = new TodoItemManager(AzureStorageImplementation.DefaultService);


			// PUSH
			//var settings = UIUserNotificationSettings.GetSettingsForTypes (
			//	UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound
			//	, null);
			//UIApplication.SharedApplication.RegisterUserNotificationSettings (settings);

			//UIRemoteNotificationType notificationTypes = 
			//	 UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound;
			//UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes); 

			return true;
		}
开发者ID:conceptdev,项目名称:xamarin-samples,代码行数:28,代码来源:AppDelegate.cs


示例3: FinishedLaunching

		public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
		{
			// Override point for customization after application launch.
			// If not required for your application you can safely delete this method

			return true;
		}
开发者ID:drgizmo666,项目名称:IosDemo,代码行数:7,代码来源:AppDelegate.cs


示例4: FinishedLaunching

        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            SensusServiceHelper.Initialize(() => new iOSSensusServiceHelper());

            // facebook settings
            Settings.AppID = "873948892650954";
            Settings.DisplayName = "Sensus";

            Forms.Init();
            FormsMaps.Init();
            MapExtendRenderer.Init();

            // toasts for iOS
            DependencyService.Register<ToastNotificatorImplementation>();
            ToastNotificatorImplementation.Init();

            LoadApplication(new App());

            uiApplication.RegisterUserNotificationSettings(UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Badge | UIUserNotificationType.Sound | UIUserNotificationType.Alert, new NSSet()));

            #if UNIT_TESTING
            Forms.ViewInitialized += (sender, e) =>
            {
                if (!string.IsNullOrWhiteSpace(e.View.StyleId))
                    e.NativeView.AccessibilityIdentifier = e.View.StyleId;
            };

            Calabash.Start();
            #endif

            return base.FinishedLaunching(uiApplication, launchOptions);
        }
开发者ID:haunthy,项目名称:sensus,代码行数:32,代码来源:AppDelegate.cs


示例5: FinishedLaunching

		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			// create our window
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			window.MakeKeyAndVisible ();
			
			// are we running an iPhone or an iPad?
			DetermineCurrentDevice ();

			// instantiate our main navigatin controller and add it's view to the window
			mainNavController = new UINavigationController ();
			
			switch (CurrentDevice)
			{
				case DeviceType.iPhone:
					iPhoneHome = new HandlingRotation.Screens.iPhone.Home.HomeScreen ();
					mainNavController.PushViewController (iPhoneHome, false);
					break;
				
				case DeviceType.iPad:
					iPadHome = new HandlingRotation.Screens.iPad.Home.HomeScreenPad ();
					mainNavController.PushViewController (iPadHome, false);
					break;
			}

			window.RootViewController = mainNavController;

			return true;
		}
开发者ID:7sharp9,项目名称:monotouch-samples,代码行数:29,代码来源:AppDelegate.cs


示例6: FinishedPickingMedia

        public override void FinishedPickingMedia(UIImagePickerController picker, NSDictionary info)
        {
            
            MediaFile mediaFile;
            switch ((NSString)info[UIImagePickerController.MediaType])
            {
                case MediaImplementation.TypeImage:
                    mediaFile = GetPictureMediaFile(info);
                    break;

                case MediaImplementation.TypeMovie:
                    mediaFile = GetMovieMediaFile(info);
                    break;

                default:
                    throw new NotSupportedException();
            }

            if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
            {
                UIApplication.SharedApplication.SetStatusBarStyle(MediaImplementation.StatusBarStyle, false);
            }

            Dismiss(picker, () => 
            {
                

                this.tcs.TrySetResult(mediaFile);
            });
        }
开发者ID:Jazzeroki,项目名称:Xamarin.Plugins,代码行数:30,代码来源:MediaPickerDelegate.cs


示例7: FinishedLaunching

		//
		// This method is invoked when the application has loaded and is ready to run. In this 
		// method you should instantiate the window, load the UI into it and then make the window
		// visible.
		//
		// You have 17 seconds to return from this method, or iOS will terminate your application.
		//
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			// create a new window instance based on the screen size
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			
			// load the appropriate UI, depending on whether the app is running on an iPhone or iPad
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) {
				var controller = new RootViewController ();
				navigationController = new UINavigationController (controller);
				window.RootViewController = navigationController;
			} else {
				var masterViewController = new RootViewController ();
				var masterNavigationController = new UINavigationController (masterViewController);
				var detailViewController = new DetailViewController ();
				var detailNavigationController = new UINavigationController (detailViewController);
				
				splitViewController = new UISplitViewController ();
				splitViewController.WeakDelegate = detailViewController;
				splitViewController.ViewControllers = new UIViewController[] {
					masterNavigationController,
					detailNavigationController
				};
				
				window.RootViewController = splitViewController;
			}

			// make the window visible
			window.MakeKeyAndVisible ();
			
			return true;
		}
开发者ID:XamarinControls,项目名称:govindaraokondala-horizontal-scrolling-in-Table-in-IOS,代码行数:38,代码来源:AppDelegate.cs


示例8: AddConstraints

		void AddConstraints ()
		{
			var views = new NSDictionary ("textView", textView);

			View.AddConstraints (NSLayoutConstraint.FromVisualFormat ("H:|-0-[textView]-0-|", 0, null, views));
			View.AddConstraints (NSLayoutConstraint.FromVisualFormat ("V:|-0-[textView]-0-|", 0, null, views));
		}
开发者ID:cyecp,项目名称:XamarinComponents,代码行数:7,代码来源:TextViewController.cs


示例9: FinishedLaunching

        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            InvokeOnMainThread(delegate {
                TwitterAccount.getAccount();
            });

            flyoutController = new FlyOutNavigationController();
            tl = new Timeline(flyoutController);
            flyoutController.NavigationRoot = new RootElement("")
            {
                new Section("Navigation")
                {
                    new StringElement("Timeline")
                }
            };

            flyoutController.ViewControllers = new UIViewController[]
            {
                new UINavigationController(tl)
            };

            window.AddSubview(flyoutController.View);

            // make the window visible
            window.MakeKeyAndVisible ();

            return true;
        }
开发者ID:timrisi,项目名称:Hashed,代码行数:38,代码来源:AppDelegate.cs


示例10: FinishedLaunching

        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            var manager = new DBAccountManager (DropboxSyncKey, DropboxSyncSecret);
            DBAccountManager.SharedManager = manager;

            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            window.RootViewController = new UINavigationController (new PlaygroundViewController ());

            Task.Factory.StartNew (() => {
                this.BeginInvokeOnMainThread (() => {
                    var account = DBAccountManager.SharedManager.LinkedAccount;
                    if (account != null) {
                        SetupDropbox ();
                    } else
                        manager.LinkFromController (window.RootViewController);
                });
            });
            // make the window visible
            window.MakeKeyAndVisible ();

            app.ApplicationSupportsShakeToEdit = true;
            return true;
        }
开发者ID:sdhakal,项目名称:imageProject,代码行数:32,代码来源:AppDelegate.cs


示例11: FinishedLaunching

		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			// create a new window instance based on the screen size
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			
			// make the window visible
			window.MakeKeyAndVisible ();
			
			// create our nav controller
			navController = new UINavigationController ();

			// create our home controller based on the device
			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone) {
				homeViewController = new Screens.HomeScreen();
			} else {
// sample does not contain an iPad UI
//				homeViewController = new Screens.iPadHomeScreen ();
			}
			
			// push the view controller onto the nav controller and show the window
			navController.PushViewController(homeViewController, false);
			window.RootViewController = navController;
			window.MakeKeyAndVisible ();
			
			return true;
		}
开发者ID:BeardAnnihilator,项目名称:xamarin-samples,代码行数:26,代码来源:AppDelegate.cs


示例12: FinishedLaunching

		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);

			MenuViewController menuViewController = new MenuViewController(UITableViewStyle.Grouped);
			DetailsViewController detailsViewController = new DetailsViewController();
			UINavigationController navController = new UINavigationController (detailsViewController);

			SlideMenuController slideMenuViewController = new SlideMenuController();
			slideMenuViewController.SetContentViewController (navController);
			slideMenuViewController.SetLeftMenuViewController (menuViewController);

			UINavigationController cont = new UINavigationController (new MenuViewController (UITableViewStyle.Plain));

			slideMenuViewController.SetRightMenuViewController (cont);

			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) {
				slideMenuViewController.WidthOfPortraitContentViewVisible = 300f;
				slideMenuViewController.WidthOfLandscapeContentViewVisible = 556f;
			}

			window.RootViewController = slideMenuViewController;

			window.BackgroundColor = UIColor.White;
			window.MakeKeyAndVisible ();			
			return true;
		}
开发者ID:rfosterfrss,项目名称:MonoTouch.SlideMenu,代码行数:27,代码来源:AppDelegate.cs


示例13: FinishedLaunching

        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init ();
            FFImageLoading.Forms.Touch.CachedImageRenderer.Init();

            PSPDFKitGlobal.SetLicenseKey ("Y3Bqql3OalXRl48bnbk9xtd6ZuDlrCZLUpKIwqZSvsBoeoRcg3pJUv1Mkr4fAn3GZxQIB7xp+Rlqxd+rrorXvolIpe2tXXuYN0Qv+4SlZUbGwePPseh1/Co7pY2nnP0GM9ppHCu/atHaMTB89UgoMtY+SSlNhVaFzHPtCP+lmazOlajqVjGN6YwfrlIb+H4EX66qQqU3+iR6y2XLCrm2IdJ2xDssNifAL0OlpujjCtGQWpLTFy3dGp7Sai5qqwEmnrbFv9TWdNFJ0wr8lOPi6DDBmgD8IzZPz8qfV9xEwiOqHhQ6G91OBKlIetojJcxqYc4x9ZG96TCoym4JRgBiu4p/5WarK5Yw1K4pz7BezsGh3InvD0cv6YnsgulGsQbBLFjAFoWbe+VLuiaMg+f07foklE6Yf5oncn4y46pEB6ZJUkXKqdhfKCb3GiE+77D4pa1+e3ntSYj6aLrdYd4RR3OTx6Ml3cveDIT7c1uFCYYzr95hGgu4NbxImb5tRmat//NXzZqnCVkaWze/szd0d1VsX6imtffJkIuqCjGPifZeL7QWGokN32P5/hxcIK6K");
            //[PSPDFKit sharedInstance][@"com.pspdfkit.development.suppress-warning-alerts"] = @YES;
            App.CurrentDevice = new iOSDeviceInfo ().GetDeviceModel (DeviceHardware.Version);
            App.ScreenWidth = (int)UIScreen.MainScreen.Bounds.Width;
            App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height;

            LoadApplication (new App());

            return base.FinishedLaunching (app,options);

            //			Forms.Init ();
            //			//var version = PSPDFKitGlobal.SharedInstance.Version;
            //			// Activate PSPDFKit for com.corning.mediando.opcomm
            //			//[PSPDFKit setLicenseKey:@"Y3Bqql3OalXRl48bnbk9xtd6ZuDlrCZLUpKIwqZSvsBoeoRcg3pJUv1Mkr4fAn3GZxQIB7xp+Rlqxd+rrorXvolIpe2tXXuYN0Qv+4SlZUbGwePPseh1/Co7pY2nnP0GM9ppHCu/atHaMTB89UgoMtY+SSlNhVaFzHPtCP+lmazOlajqVjGN6YwfrlIb+H4EX66qQqU3+iR6y2XLCrm2IdJ2xDssNifAL0OlpujjCtGQWpLTFy3dGp7Sai5qqwEmnrbFv9TWdNFJ0wr8lOPi6DDBmgD8IzZPz8qfV9xEwiOqHhQ6G91OBKlIetojJcxqYc4x9ZG96TCoym4JRgBiu4p/5WarK5Yw1K4pz7BezsGh3InvD0cv6YnsgulGsQbBLFjAFoWbe+VLuiaMg+f07foklE6Yf5oncn4y46pEB6ZJUkXKqdhfKCb3GiE+77D4pa1+e3ntSYj6aLrdYd4RR3OTx6Ml3cveDIT7c1uFCYYzr95hGgu4NbxImb5tRmat//NXzZqnCVkaWze/szd0d1VsX6imtffJkIuqCjGPifZeL7QWGokN32P5/hxcIK6K");
            //			//PSPDFKitGlobal.SetLicenseKey ("Y3Bqql3OalXRl48bnbk9xtd6ZuDlrCZLUpKIwqZSvsBoeoRcg3pJUv1Mkr4fAn3GZxQIB7xp+Rlqxd+rrorXvolIpe2tXXuYN0Qv+4SlZUbGwePPseh1/Co7pY2nnP0GM9ppHCu/atHaMTB89UgoMtY+SSlNhVaFzHPtCP+lmazOlajqVjGN6YwfrlIb+H4EX66qQqU3+iR6y2XLCrm2IdJ2xDssNifAL0OlpujjCtGQWpLTFy3dGp7Sai5qqwEmnrbFv9TWdNFJ0wr8lOPi6DDBmgD8IzZPz8qfV9xEwiOqHhQ6G91OBKlIetojJcxqYc4x9ZG96TCoym4JRgBiu4p/5WarK5Yw1K4pz7BezsGh3InvD0cv6YnsgulGsQbBLFjAFoWbe+VLuiaMg+f07foklE6Yf5oncn4y46pEB6ZJUkXKqdhfKCb3GiE+77D4pa1+e3ntSYj6aLrdYd4RR3OTx6Ml3cveDIT7c1uFCYYzr95hGgu4NbxImb5tRmat//NXzZqnCVkaWze/szd0d1VsX6imtffJkIuqCjGPifZeL7QWGokN32P5/hxcIK6K");
            //			//var version = PSPDFKitGlobal.SharedInstance.Version;
            //			PSPDFKitGlobal.SetLicenseKey ("blcWhXFIwpatKqQ1FoOb3HyC_2clmIg-rDyAKwQapxIFxDfXqmFqKYedy0oMW94i90ERmUNfPU4B8_V1D6TeTyNmFlL-ICnqWCW5NxT2MW1E_K1RkhWgyqo0rOACe6o5tdoKwwCHLrccRnHzDnGShjYRs9boy2bcZmegG5KIti21WRkkhiUu5kIyRG7DvIOPliWFGMoQI9020S6Ak6j8Nc6abAkVQXAjPFXbEVpFTIIRcD7xGFkEwS6oL7YatYkKYbY94GFRYv6YLedMblRntdMVOPsrSidxOqerjU2Myom9Dxkx5CxvIvWKZLV00cjma_BCy4rgq9GO9ScYytQH1qiyaK8Hyk8oBSAiGhveUP7SAA7uS2CR9ZU0buZ-Cneqli4yw91PHPwRx1GpFItvMw5og157ajhN5UixQJ76T3c=");
            //			App.CurrentDevice = new iOSDeviceInfo ().GetDeviceModel (DeviceHardware.Version);
            //			App.ScreenWidth = (int)UIScreen.MainScreen.Bounds.Width;
            //			App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height;
            //
            //			LoadApplication (new App());
            //
            //			return base.FinishedLaunching (app,options);
        }
开发者ID:CorningWebServices,项目名称:SolutionsKiosk,代码行数:30,代码来源:AppDelegate.cs


示例14: FinishedLaunching

		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{

			// create a new window instance based on the screen size
			window = new UIWindow (UIScreen.MainScreen.Bounds);

			var sqliteFilename = "TodoSQLite.db3";
			string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder
			string libraryPath = Path.Combine (documentsPath, "..", "Library"); // Library folder
			var path = Path.Combine(libraryPath, sqliteFilename);

			// This is where we copy in the prepopulated database
			Console.WriteLine (path);
			if (!File.Exists (path)) {
				File.Copy (sqliteFilename, path);
			}

			var plat = new SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS();
			var conn = new SQLite.Net.SQLiteConnection(plat, path);

			// Set the database connection string
			App.SetDatabaseConnection (conn);

//			window.RootViewController = new HybridRazorViewController ();
			window.RootViewController = new UINavigationController(new NativeListViewController ());

			// make the window visible
			window.MakeKeyAndVisible ();

			return true;
		}
开发者ID:ARMoir,项目名称:mobile-samples,代码行数:31,代码来源:AppDelegate.cs


示例15: FinishedLaunching

        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //
            // ENTER YOUR LICENSE INFO HERE
            //
            PXEngine.LicenseKeyForUser("SERIAL NUMBER", "USER NAME");

            // create a new window instance based on the screen size
            window = new UIWindow (UIScreen.MainScreen.Bounds);

            window.RootViewController = new MyViewController();

            // make the window visible
            window.MakeKeyAndVisible ();

            PXEngine shared = PXEngine.SharedInstance();

            // Print the version an build date
            Console.WriteLine("Pixate Engine v{0} {1}", shared.Version, shared.BuildDate);

            // Print the location of the current application-level stylesheet
            Console.WriteLine("CSS File location: {0}", PXStylesheet.CurrentApplicationStylesheet().FilePath);

            // Monitor for changes in the stylesheet and update styles live
            PXStylesheet.CurrentApplicationStylesheet().MonitorChanges = true;

            return true;
        }
开发者ID:stefandevo,项目名称:MonoTouch-Pixate,代码行数:35,代码来源:AppDelegate.cs


示例16: LoadDefaultValues

		static void LoadDefaultValues ()
		{
			var settingsDict = new NSDictionary (NSBundle.MainBundle.PathForResource ("Settings.bundle/Root.plist", null));

			var prefSpecifierArray = settingsDict["PreferenceSpecifiers"] as NSArray;

			foreach (var prefItem in NSArray.FromArray<NSDictionary> (prefSpecifierArray)) {
				var key = (NSString)prefItem["Key"];
				if (key == null)
					continue;

				var val = prefItem["DefaultValue"];
				switch (key.ToString ()) {
					case firstNameKey:
						FirstName = val.ToString ();
						break;
					case lastNameKey:
						LastName = val.ToString ();
						break;
					case nameColorKey:
						TextColor = (TextColors)((NSNumber)val).Int32Value;
						break;
					case backgroundColorKey:
						BackgroundColor = (BackgroundColors)((NSNumber)val).Int32Value;
						break;
				}
			}
			var appDefaults = new NSDictionary (firstNameKey, FirstName, lastNameKey, LastName, nameColorKey, (int)TextColor, backgroundColorKey, (int)BackgroundColor);

			NSUserDefaults.StandardUserDefaults.RegisterDefaults (appDefaults);
			NSUserDefaults.StandardUserDefaults.Synchronize ();
		}
开发者ID:g7steve,项目名称:monotouch-samples,代码行数:32,代码来源:Settings.cs


示例17: FinishedLaunching

		// This method is invoked when the application has loaded its UI and its ready to run
		public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
		{
			window.RootViewController = viewController;
			window.MakeKeyAndVisible ();

			return true;
		}
开发者ID:Rajneesh360Logica,项目名称:monotouch-samples,代码行数:8,代码来源:AppDelegate.cs


示例18: FinishedLaunching

		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);
			runner = new TouchRunner (window);

			// tests can be inside the main assembly
			runner.Add (Assembly.GetExecutingAssembly ());
#if false
			// you can use the default or set your own custom writer (e.g. save to web site and tweet it ;-)
			runner.Writer = new TcpTextWriter ("10.0.1.2", 16384);
			// start running the test suites as soon as the application is loaded
			runner.AutoStart = true;
			// crash the application (to ensure it's ended) and return to springboard
			runner.TerminateAfterExecution = true;
#endif
#if false
			// you can get NUnit[2-3]-style XML reports to the console or server like this
			// replace `null` (default to Console.Out) to a TcpTextWriter to send data to a socket server
			// replace `NUnit2XmlOutputWriter` with `NUnit3XmlOutputWriter` for NUnit3 format
			runner.Writer = new NUnitOutputTextWriter (runner, null, new NUnitLite.Runner.NUnit2XmlOutputWriter ());
			// the same AutoStart and TerminateAfterExecution can be used for build automation
#endif
			window.RootViewController = new UINavigationController (runner.GetViewController ());
			window.MakeKeyAndVisible ();
			return true;
		}
开发者ID:couchbasedeps,项目名称:Touch.Unit,代码行数:26,代码来源:AppDelegate.cs


示例19: FinishedLaunching

        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window.AddSubview (navigationController.View);
            window.MakeKeyAndVisible ();

            return true;
        }
开发者ID:lobrien,项目名称:MonoTouch-Navigation-Controller-Tutorial,代码行数:8,代码来源:Main.cs


示例20: FinishedLaunching

        public override bool FinishedLaunching(UIApplication app, NSDictionary options) {
            UserDialogs.Init();
            Forms.Init();
            this.LoadApplication(new App());

            return base.FinishedLaunching(app, options);
        }
开发者ID:RTodorov,项目名称:userdialogs,代码行数:7,代码来源:AppDelegate.cs



注:本文中的NSDictionary类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# NSError类代码示例发布时间:2022-05-24
下一篇:
C# NSData类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap