Skip to content

Instantly share code, notes, and snippets.

View StephaneDelcroix's full-sized avatar

Stephane Delcroix StephaneDelcroix

View GitHub Profile
public override void OnActivated (UIApplication application)
{
//When your app is backgrounded, iOS takes a snapshot.
//When the app comes back from the background it shows this snapshot at launch until your app is ready
//Sometimes apple forgets to remove the splash screen.
//Your app is in the forground and working. To prove it you can rotate, and see half your real screen.
//To prevent this from happening you can manually remove the view
foreach (var w in application.Windows) {
if (w != null && w != window) {
// invoke this in your appdelegate
#if DEBUG
private void ScanForUnresurrectableMonoTouchTypes ()
{
var found_bad = false;
var intptr_ctor = new Type [] { typeof (IntPtr) };
var types = GetType ().Assembly.GetTypes ();