简体   繁体   中英

Route-Me Offline Maps from Document Root

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!

你只需要写:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM