Forum Xamarin.iOS

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Setting global variables

Greg.8674Greg.8674 USMember ✭✭

Is there a place where I can set global variables used throughout my app before my users will begin using it?
Example is a user launches the app, I need to set some global variables like their CurrentRegion and a DateTime.Now() and also make a call to a webservice all before I load my initial ViewController which is a login screen.

Should I do this in the Main.cs, AppDelegate.cs or other ?

thanks in advance

Posts

Sign In or Register to comment.