async partial void LogoutPressed(UIButton sender) { try { await Gigya.LogoutAsync(); await TabBarController.PresentingViewController.DismissViewControllerAsync(true); } catch (Exception ex) { Console.WriteLine("Error logging out: {0}", ex.Message); } }