I am creating an app in Xamarin.IOS.
I want to get the current view controller at present in page view controller. Please give me any example code or answers.
Thanks.
I am creating an app in Xamarin.IOS.
I want to get the current view controller at present in page view controller. Please give me any example code or answers.
Thanks.
You can hook to DidFinishAnimating
event to get the current page view controller.
DidFinishAnimating += (sender, e) => {
if (e.Completed)
{
var currentViewController = ((AnimalPageViewController)sender).ViewControllers[0];
}
};