summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.ControlGallery.iOS
diff options
context:
space:
mode:
authorRui Marinho <me@ruimarinho.net>2017-05-26 14:58:17 (GMT)
committerGitHub <noreply@github.com>2017-05-26 14:58:17 (GMT)
commit4af6f48fe7e9368d6659040e50a9dab97f8cb872 (patch)
tree74a65a2f11a087b330e82cd28717a45a2d2abb13 /Xamarin.Forms.ControlGallery.iOS
parent744e8fefef230067365392e7d8dce53ff6cabacb (diff)
downloadxamarin-forms-4af6f48fe7e9368d6659040e50a9dab97f8cb872.zip
xamarin-forms-4af6f48fe7e9368d6659040e50a9dab97f8cb872.tar.gz
xamarin-forms-4af6f48fe7e9368d6659040e50a9dab97f8cb872.tar.bz2
[Controls] Fix test error 38731 (#936)
Diffstat (limited to 'Xamarin.Forms.ControlGallery.iOS')
-rw-r--r--Xamarin.Forms.ControlGallery.iOS/CustomRendererBugzila38731.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.Forms.ControlGallery.iOS/CustomRendererBugzila38731.cs b/Xamarin.Forms.ControlGallery.iOS/CustomRendererBugzila38731.cs
index 0ae8d96..54d2ba7 100644
--- a/Xamarin.Forms.ControlGallery.iOS/CustomRendererBugzila38731.cs
+++ b/Xamarin.Forms.ControlGallery.iOS/CustomRendererBugzila38731.cs
@@ -18,11 +18,12 @@ namespace Xamarin.Forms.ControlGallery.iOS
if (NavigationController.ViewControllers.Length > 1)
{
- NavigationController.TopViewController.NavigationItem.SetLeftBarButtonItem(new UIBarButtonItem(
- UIImage.FromFile("bank.png"), UIBarButtonItemStyle.Plain, (sender, args) =>
+ var btn = new UIBarButtonItem(UIImage.FromFile("bank.png"), UIBarButtonItemStyle.Plain, (sender, args) =>
{
NavigationController.PopViewController(true);
- }), true);
+ });
+ btn.AccessibilityIdentifier = "goback";
+ NavigationController.TopViewController.NavigationItem.SetLeftBarButtonItem(btn, true);
}
}
}