7
A
回答
18
你可以讓VoiceOver會宣佈你喜歡的任何文字:
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, @"Your text");
如果標籤應該儘快更新它宣佈其文本,簡單地延長UILabel
並重寫setText
方法。
.h文件:
@interface UIVoicedLabel : UILabel {
}
@end
及其實施:
#import "UIVoicedLabel.h"
@implementation UIVoicedLabel
- (void) setText:(NSString *)text {
// Set the text by calling the base class method.
[super setText:text];
// Announce the new text.
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, text);
}
@end
這完美的工作對我來說:)
相關問題
- 1. VoiceOver宣佈文本更改OS X
- 2. iPhone發佈標籤文本
- 3. iPhone更改標籤
- 4. 使VoiceOver宣佈UIKeyInput的鍵入/刪除字符
- 5. 更改標籤文本
- 6. 更改標籤文本
- 7. ExtJs標籤文本更改
- 8. 更改標籤文本
- 9. 更改標籤文本
- 10. JavaFX更改標籤文本
- 11. 更改標籤文本
- 12. 當標籤文本更改
- 13. 使用數組更改標籤文本
- 14. 使用Javascript更改標籤文本
- 15. 更改當前位置標籤文本
- 16. 目標C - 環更改標籤文本
- 17. 如何使用jquery更改標籤標籤內的文本
- 18. 如何更改標籤文本上點擊segmentControl在iphone
- 19. 使用javascript更改文本框值時更改標籤值
- 20. 如何更改標籤佈局的文本顏色?
- 21. 動態宣佈功能或更改
- 22. UIAccessibility VoiceOver爲UIScrollView宣佈錯誤的頁碼
- 23. 如何讓VoiceOver在iOS中發佈章節標籤?
- 24. jQuery的 - 從標籤更改文本
- 25. 更改Android標籤上的文本
- 26. 從變量中更改標籤文本
- 27. 如何更改標籤文本動態
- 28. 動態更改標籤文本QML
- 29. 更改monodevelop c中的標籤文本#
- 30. 更改java swt中的標籤文本