gpt4 book ai didi

swift - MSDKUI 2.1.1更新后添加GuidanceManeuverMonitor时语音导航不工作

转载 作者:搜寻专家 更新时间:2023-11-01 06:50:52 25 4
gpt4 key购买 nike

我已将我的 MSDKUI 项目从 2.0.0 更新到 2.1.1,并进行了一些更改以使导航正常工作。我的项目基于“GuideMeToHERE”。更新后的 podfile 是:目标'GuideMeToHERE'做 平台:ios,'12.0' pod 'HEREMapsUI', '2.1.1'结束

当我设置 GuidanceManeuverMonitor 时,语音指导停止工作。

这是我的函数 setUpGuidanceViews(route: NMARoute)

    private func setUpGuidanceViews(route: NMARoute) {

NMANavigationManager.sharedInstance().delegate = self

//*** If I comment these three lines out the voice guidance works!
maneuverMonitor = GuidanceManeuverMonitor(route: route)
maneuverMonitor.delegate = self
customizeGuidanceManeuverView()

如何使机动监控器工作并获得语音指导?

最佳答案

我通过将其中一位代表更改为更具体来修复它:

    //NMANavigationManager.sharedInstance().delegate = self
NavigationManagerDelegateDispatcher.shared.add(delegate: self)

关于swift - MSDKUI 2.1.1更新后添加GuidanceManeuverMonitor时语音导航不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57302805/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com