Forum Xamarin.iOS

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


Sign In or Register to comment.