Mac 10.8 包含私有(private) DictationServices.framework
它永远不会在 App Store 中获得批准,而只是出于兴趣: 如何利用它的私有(private)类、方法和消息?
root:~/DictationServices.framework$ strings DictationServices
揭示了以下内容:
SOMicrophonePopUpButton SOMicrophoneView SOMicrophoneLevelMeterController SOEnableDictationPanelController SODictationHotKeyController SOEnableDictationDelegate
logDictationFinished:服务器错误:
com.apple.message.dictationstatus com.apple.speech.recognition.AppleSpeechRecognition.prefs
最佳答案
您是否尝试过使用类转储来提取头文件?只需将这些 header 包含在您的项目中并链接到框架即可。
关于objective-c - 如何使用 DictationServices.framework,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11702804/