Skip to content

Instantly share code, notes, and snippets.

@baileysh9
Created April 29, 2016 17:44
Show Gist options
  • Save baileysh9/3b2180a819921dd4d6ba3bbd406c0c39 to your computer and use it in GitHub Desktop.
Save baileysh9/3b2180a819921dd4d6ba3bbd406c0c39 to your computer and use it in GitHub Desktop.
iOSScreenDim
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init ();
// Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
Xamarin.Calabash.Start();
#endif
App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height;
App.ScreenWidth = (int)UIScreen.MainScreen.Bounds.Width;
LoadApplication (new App ());
return base.FinishedLaunching (app, options);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment