且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Mapbox显示异常并在iOS中使用mbtiles时终止

更新时间:2022-06-22 03:11:21

RMMBTilesSource确实在使用该代码.您需要确保您的OSMBright.mbtiles文件是项目目标的一部分,并已添加到您的捆绑软件中,以便可以将其作为切片源上拉.像您需要在应用程序中使用的任何资源一样,仅作为Xcode项目的一部分还不够.

RMMBTilesSource is indeed using that code. You need to make sure that your OSMBright.mbtiles file is part of the project's target and being added to your bundle so that it can be pulled up as a tile source. Like any resource that you need to use in your app, it's not enough to simply be part of the Xcode project.