From c1077879a637df711e23a84e922cebdda1bd17cc Mon Sep 17 00:00:00 2001 From: Ryan Maxwell Date: Thu, 31 Jul 2014 14:20:35 +1200 Subject: [PATCH 1/2] Add accessibility hint for voiceover support. --- MMDrawerController/MMDrawerBarButtonItem.m | 1 + 1 file changed, 1 insertion(+) diff --git a/MMDrawerController/MMDrawerBarButtonItem.m b/MMDrawerController/MMDrawerBarButtonItem.m index 2fc99978..84a48c46 100644 --- a/MMDrawerController/MMDrawerBarButtonItem.m +++ b/MMDrawerController/MMDrawerBarButtonItem.m @@ -255,6 +255,7 @@ -(id)initWithTarget:(id)target action:(SEL)action{ } self.action = action; self.target = target; + self.accessibilityHint = @"Menu"; return self; } } From bdee6b2720a859b351035b5dfb7b1b07503bd635 Mon Sep 17 00:00:00 2001 From: Ryan Maxwell Date: Tue, 12 Aug 2014 12:51:24 +1200 Subject: [PATCH 2/2] use hint as well as label. --- MMDrawerController/MMDrawerBarButtonItem.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MMDrawerController/MMDrawerBarButtonItem.m b/MMDrawerController/MMDrawerBarButtonItem.m index 84a48c46..04ae0a38 100644 --- a/MMDrawerController/MMDrawerBarButtonItem.m +++ b/MMDrawerController/MMDrawerBarButtonItem.m @@ -255,7 +255,8 @@ -(id)initWithTarget:(id)target action:(SEL)action{ } self.action = action; self.target = target; - self.accessibilityHint = @"Menu"; + self.accessibilityLabel = @"Menu"; + self.accessibilityHint = @"Toggles the Menu"; return self; } }