Skip to content

Commit

Permalink
set accessibility label text to action title in SDCAlertCollectionVie…
Browse files Browse the repository at this point in the history
…wCell
  • Loading branch information
Kurry committed Jun 18, 2015
1 parent 4da5ebd commit 0529dd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SDCAlertView/Source/SDCAlertCollectionViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ - (void)updateWithAction:(SDCAlertAction *)action visualStyle:(id<SDCAlertContro

if (action.attributedTitle) {
self.textLabel.attributedText = action.attributedTitle;
self.accessibilityLabel = [action.attributedTitle string];
} else {
self.textLabel.text = action.title;
self.accessibilityLabel = action.title;
}

self.enabled = action.isEnabled;
Expand Down

0 comments on commit 0529dd5

Please sign in to comment.