Route-Me Offline Maps from Document Root

≡放荡痞女 提交于 2019-12-02 18:46:22

问题


In my App, there is a offline Map presented from a sqlite file.

RMDBMapSource *mapSrc = [[RMDBMapSource alloc] initWithPath:@"map.sqlite"];
RMMapContents *contents = nil;
contents = [[RMMapContents alloc] initWithView:mapView tilesource:mapSrc];

The map.sqlite file is loaded from my resources and everything is displayed correct.

My Problem: I am downloading new versions of the map.sqlite to my Apps documents folder. How can I load my MapSource from a file in the documents folder?

Thanks in advance!


回答1:


You simply need to write:

RMDBMapSource *mapSrc = [[RMDBMapSource alloc]  initWithPath:@"../Documents/yourdb.sqlite"];


来源:https://stackoverflow.com/questions/12155714/route-me-offline-maps-from-document-root

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!