Download - Making an app like 'Clear' Accessible
For the next 15-ish minutes...
• Accessibility
• Demo of Clear
• Adding support
• Designing accessibility
Using notifications
- (void)viewDidAppear:(BOOL)animated!{![super viewDidAppear:animated]; ! UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, self.currentToDoList);!
}!
Direct Interaction
!- (UIAccessibilityTraits)accessibilityTraits { return UIAccessibilityTraitAllowsDirectInteraction; }
UIAccessibilityCustomAction (iOS 8 only)
UIAccessibilityCustomAction *helloAction = [[UIAccessibilityCustomAction alloc] initWithName:@"Say hello" target:self selector:@selector(sayHello)]; !UIAccessibilityCustomAction *goodbyeAction = [[UIAccessibilityCustomAction alloc] initWithName:@"Say goodbye" target:self selector:@selector(sayGoodbye)]; !for (UIView *element in cardView.accessibilityElements) { element.accessibilityCustomActions = @[helloAction, goodbyeAction]; }
Thanks!
Sally Shepard // @mostgood
Icons from Noun Project: Rinna Guevara, Stephen Copinger, Luis Prado, Hadi Davodpour, Kristian
Bannister, Iconathon, Luis Prado, Christopher Anderson, Charlene Chen, Charlotte Vogel