I am using the Facebook Auth SDK , with the Xamarin Forms C # example . However, the Facebook SDK discounted the method and replaced it with one that adds the fromViewController variable to the constructors. I don't really like the concept of ViewControllers in Xamarin, or is it really with this code, like with the sample, so is there a way to evaluate the current ViewController?
I saw some .net examples, for example. NSArray *viewContrlls=[[self navigationController] viewControllers];[viewContrlls lastObject]; However, this approach does not seem to work with Xamarin, since self does not contain definitions for navigationControllers.
Alternatively, is there any way to easily develop the variable that the current current ViewController changes into using a sample code?
source share