开发者

iPhone accessibility on button with image

Anyone knows how to prevent VoiceOver from speaking the button image filename?

开发者_如何转开发

Thanks in advance!


self.button.accessibilityLabel = @"Your accessibility label";
self.button.accessibilityTraits = UIAccessibilityTraitButton;

Hope this help


If you set an accessible name for the button, Voiceover will read that instead of the filename. find exact info at http://developer.apple.com/accessibility

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜