Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 地图盒逐圈导航SDK地图不';t在右角显示限速界面_Ios_Swift_Navigation_Mapbox_Mapbox Ios - Fatal编程技术网

Ios 地图盒逐圈导航SDK地图不';t在右角显示限速界面

Ios 地图盒逐圈导航SDK地图不';t在右角显示限速界面,ios,swift,navigation,mapbox,mapbox-ios,Ios,Swift,Navigation,Mapbox,Mapbox Ios,Mapbox SDK未在右角显示限速UI。下面是代码 Direction.shared.calculate(选项){(会话、结果)输入){ switch result { case .failure(let error): print(error.localizedDescription) case .success(let response): print("Response->&q

Mapbox SDK未在右角显示限速UI。下面是代码

Direction.shared.calculate(选项){(会话、结果)输入){

        switch result {
        case .failure(let error):
            print(error.localizedDescription)
        case .success(let response):
            print("Response->", response)
            guard let route = response.routes?.first else {
                return
            }

            let navigationService = MapboxNavigationService(route: route, routeIndex: 0, routeOptions: routeOptions, simulating: .always)
            let navigationOptions = NavigationOptions(styles: [DayStyle()], navigationService: navigationService)
            let navigationViewController = NavigationViewController(for: route, routeIndex: 0, routeOptions: routeOptions, navigationOptions: navigationOptions)
            navigationViewController.modalPresentationStyle = .fullScreen
            navigationViewController.showsSpeedLimits = true
            self.present(navigationViewController, animated: true, completion: nil)
        }
   }