Only work the first time, and the Controller is a Weak Reference like you say
This code works good with xamarin plugin 4.2.1, but fails on 5.0.0, dont know why ...
UIStoryboard story = UIStoryboard.FromName ("MainStoryboard", null); var view = story.InstantiateViewController ("ViewController") as WikitudeViewController; var weakThis = new WeakReference<WikitudeViewController> (view); weakThis.TryGetTarget (out view); var nav = new UINavigationController (view); UIApplication.SharedApplication.Windows .RootViewController = nav; UIApplication.SharedApplication.Windows .MakeKeyAndVisible ();
P
Pedro Antonio Seco de Herrera Gómez
said
over 8 years ago
One more thing ... on xamarin there is no way for do
;
you can only do:
architectView.Start or architectView.Stop
F
Frank Ortner
said
over 8 years ago
In Xamarin i have tryed everything with WeakReferences but without success.
Finaly i set architectView.RemoveFromSuperview(); in the ViewWillDisappear (bool animated) and the Error:
Check failed: !IsGoogleLoggingInitialized() You called InitGoogleLogging() twice! is gone because all references are probably unset.
Lorenzo